]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: gred: remove unclear comment
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 19 Nov 2018 23:03:28 +0000 (15:03 -0800)
committerDavid Ahern <dsahern@gmail.com>
Sat, 24 Nov 2018 15:08:16 +0000 (07:08 -0800)
The comment about providing a proper message seems similar to
the comment in the kernel which says:

    /* hack -- fix at some point with proper message
       This is how we indicate to tc that there is no VQ
       at this DP */

it's unclear what that message would be, and whether it's needed.
Remove the confusing comment.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/q_gred.c

index e63fac72a883d690762b62d51f6d44b345e384ec..80a9ccbbd3cbad29377fc8a0a63edc5750f09d0b 100644 (file)
@@ -302,8 +302,6 @@ static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
                return -1;
        }
 
-/* Bad hack! should really return a proper message as shown above*/
-
        fprintf(f, "vqs %u default %u %s",
                sopt->DPs,
                sopt->def_DP,