q_cake: Also print nonat, nowash and no-ack-filter keywords
Similar to the previous patch for no-split-gso, the negative keywords for 'nat', 'wash' and 'ack-filter' were not printed either. Add those well. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
92bba4ed40
commit
2153e01f36
|
|
@ -468,6 +468,8 @@ static int cake_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||||
|
|
||||||
if (nat)
|
if (nat)
|
||||||
print_string(PRINT_FP, NULL, "nat ", NULL);
|
print_string(PRINT_FP, NULL, "nat ", NULL);
|
||||||
|
else
|
||||||
|
print_string(PRINT_FP, NULL, "nonat ", NULL);
|
||||||
print_bool(PRINT_JSON, "nat", NULL, nat);
|
print_bool(PRINT_JSON, "nat", NULL, nat);
|
||||||
|
|
||||||
if (tb[TCA_CAKE_WASH] &&
|
if (tb[TCA_CAKE_WASH] &&
|
||||||
|
|
@ -508,6 +510,8 @@ static int cake_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||||
|
|
||||||
if (wash)
|
if (wash)
|
||||||
print_string(PRINT_FP, NULL, "wash ", NULL);
|
print_string(PRINT_FP, NULL, "wash ", NULL);
|
||||||
|
else
|
||||||
|
print_string(PRINT_FP, NULL, "nowash ", NULL);
|
||||||
print_bool(PRINT_JSON, "wash", NULL, wash);
|
print_bool(PRINT_JSON, "wash", NULL, wash);
|
||||||
|
|
||||||
if (ingress)
|
if (ingress)
|
||||||
|
|
@ -520,7 +524,7 @@ static int cake_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
|
||||||
else if (ack_filter == CAKE_ACK_FILTER)
|
else if (ack_filter == CAKE_ACK_FILTER)
|
||||||
print_string(PRINT_ANY, "ack-filter", "ack-filter ", "enabled");
|
print_string(PRINT_ANY, "ack-filter", "ack-filter ", "enabled");
|
||||||
else
|
else
|
||||||
print_string(PRINT_JSON, "ack-filter", NULL, "disabled");
|
print_string(PRINT_ANY, "ack-filter", "no-ack-filter ", "disabled");
|
||||||
|
|
||||||
if (split_gso)
|
if (split_gso)
|
||||||
print_string(PRINT_FP, NULL, "split-gso ", NULL);
|
print_string(PRINT_FP, NULL, "split-gso ", NULL);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue