]> git.baikalelectronics.ru Git - kernel.git/commit
sch_cake: Use tc_skb_protocol() helper for getting packet protocol
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 4 Apr 2019 13:01:33 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:55:59 +0000 (10:55 -0700)
commita4771a7ea8c641f044d3e7625ed532df4de68e9a
treef31ed49cb46d49d2d89516a7164784dd71e1c0c7
parentacff248bd51dc49ef647126cd6c497b6c20f0050
sch_cake: Use tc_skb_protocol() helper for getting packet protocol

We shouldn't be using skb->protocol directly as that will miss cases with
hardware-accelerated VLAN tags. Use the helper instead to get the right
protocol number.

Reported-by: Kevin Darbyshire-Bryant <kevin@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