]> asedeno.scripts.mit.edu Git - linux.git/commit
sch_cake: Simplify logic in cake_select_tin()
authorToke Høiland-Jørgensen <toke@toke.dk>
Fri, 1 Mar 2019 15:04:05 +0000 (16:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 04:14:28 +0000 (20:14 -0800)
commit4976e3c683f328bc6f2edef555a4ffee6524486f
treef6954a02688cc21ba365b45a9a0dfbded540f0c0
parent0b5c7efdfc6e389ec6840579fe90bdb6f42b08dc
sch_cake: Simplify logic in cake_select_tin()

With more modes added the logic in cake_select_tin() was getting a bit
hairy, and it turns out we can actually simplify it quite a bit. This also
allows us to get rid of one of the two diffserv parsing functions, which
has the added benefit that already-zeroed DSCP fields won't get re-written.

Suggested-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cake.c