]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: sched: act_csum: Fix csum calc for tagged packets
authorEli Britstein <elibr@mellanox.com>
Tue, 26 Feb 2019 09:57:34 +0000 (09:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 05:49:46 +0000 (21:49 -0800)
commit2ecba2d1e45b24620a7c3df9531895cf68d5dec6
tree770157e1f8e6a88066b09e4bbdea73ad7e3f0c64
parentd89ea4acfc039f6968f8b5a1dfae5d3cbf611444
net: sched: act_csum: Fix csum calc for tagged packets

The csum calculation is different for IPv4/6. For VLAN packets,
tc_skb_protocol returns the VLAN protocol rather than the packet's one
(e.g. IPv4/6), so csum is not calculated. Furthermore, VLAN may not be
stripped so csum is not calculated in this case too. Calculate the
csum for those cases.

Fixes: d8b9605d2697 ("net: sched: fix skb->protocol use in case of accelerated vlan path")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_csum.c