interface: add missing autorate-ingress options
authorFelix Fietkau <nbd@nbd.name>
Sun, 20 Feb 2022 12:58:18 +0000 (13:58 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 20 Feb 2022 12:58:18 +0000 (13:58 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
interface.c

index 4e3497daf22718b0b1347d9ee02d43065fda4101..5c2dfe89ad544a7554ab388f7265e02bd584e67a 100644 (file)
@@ -286,6 +286,8 @@ cmd_add_qdisc(struct qosify_iface *iface, const char *ifname, bool egress, bool
                APPEND(buf, ofs, " bandwidth %s", bw);
 
        APPEND(buf, ofs, " %s %sgress", cfg->mode, egress ? "e" : "in");
+       if (!egress && cfg->autorate_ingress)
+               APPEND(buf, ofs, " autorate-ingress");
 
        if (cfg->host_isolate)
                APPEND(buf, ofs, " %snat dual-%shost",