diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index a561443b..4f3714b7 100644 --- a/man/man8/tc-flower.8 +++ b/man/man8/tc-flower.8 @@ -22,6 +22,8 @@ flower \- flow based traffic control filter .IR MATCH " := { " .B indev .IR ifname " | " +.BR verbose +.RI " | " .BR skip_sw " | " skip_hw .RI " | { " .BR dst_mac " | " src_mac " } " @@ -100,6 +102,11 @@ is the name of an interface which must exist at the time of .B tc invocation. .TP +.BI verbose +Enable verbose logging, including offloading errors when not using +.B skip_sw +flag. +.TP .BI skip_sw Do not process filter by software. If hardware has no offload support for this filter, or TC offload is not enabled for the interface, operation will fail. diff --git a/tc/f_flower.c b/tc/f_flower.c index ba8eb66c..c7107651 100644 --- a/tc/f_flower.c +++ b/tc/f_flower.c @@ -41,7 +41,7 @@ enum flower_icmp_field { static void explain(void) { fprintf(stderr, - "Usage: ... flower [ MATCH-LIST ]\n" + "Usage: ... flower [ MATCH-LIST ] [ verbose ]\n" " [ skip_sw | skip_hw ]\n" " [ action ACTION-SPEC ] [ classid CLASSID ]\n" "\n" @@ -648,6 +648,8 @@ static int flower_parse_opt(struct filter_util *qu, char *handle, fprintf(stderr, "Illegal \"ip_flags\"\n"); return -1; } + } else if (matches(*argv, "verbose") == 0) { + flags |= TCA_CLS_FLAGS_VERBOSE; } else if (matches(*argv, "skip_hw") == 0) { flags |= TCA_CLS_FLAGS_SKIP_HW; } else if (matches(*argv, "skip_sw") == 0) {