aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/switchdev.h
diff options
context:
space:
mode:
authorEli Britstein <elibr@mellanox.com>2019-02-26 09:57:34 +0000
committerDavid S. Miller <davem@davemloft.net>2019-02-27 21:49:46 -0800
commit2ecba2d1e45b24620a7c3df9531895cf68d5dec6 (patch)
tree770157e1f8e6a88066b09e4bbdea73ad7e3f0c64 /include/net/switchdev.h
parentnet: hns: use struct_size() in devm_kzalloc() (diff)
downloadwireguard-linux-2ecba2d1e45b24620a7c3df9531895cf68d5dec6.tar.xz
wireguard-linux-2ecba2d1e45b24620a7c3df9531895cf68d5dec6.zip
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>
Diffstat (limited to 'include/net/switchdev.h')
0 files changed, 0 insertions, 0 deletions