interface: add missing autorate-ingress options
[project/qosify.git] / 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",