]> git.baikalelectronics.ru Git - kernel.git/commit
sch_cake: Fix tin order when set through skb->priority
authorToke Høiland-Jørgensen <toke@toke.dk>
Mon, 16 Jul 2018 14:45:09 +0000 (16:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 21:47:45 +0000 (14:47 -0700)
commitd921d699aedcbda38f680795e0c57391d950f402
treeca06d86900743f3a81214b3d245dc96582441f70
parent6efbc64d12bf399507da08db7255005d242fd673
sch_cake: Fix tin order when set through skb->priority

In diffserv mode, CAKE stores tins in a different order internally than
the logical order exposed to userspace. The order remapping was missing
in the handling of 'tc filter' priority mappings through skb->priority,
resulting in bulk and best effort mappings being reversed relative to
how they are displayed.

Fix this by adding the missing mapping when reading skb->priority.

Fixes: 0cfe718254a6 ("sch_cake: Add DiffServ handling")
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_cake.c