aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorEli Britstein <elibr@mellanox.com>2019-02-26 04:57:34 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-28 00:49:46 -0500
commit2ecba2d1e45b24620a7c3df9531895cf68d5dec6 (patch)
tree770157e1f8e6a88066b09e4bbdea73ad7e3f0c64 /net/switchdev/switchdev.c
parentd89ea4acfc039f6968f8b5a1dfae5d3cbf611444 (diff)
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions