summaryrefslogtreecommitdiff
path: root/firmware/myricom
diff options
context:
space:
mode:
authorAnsis Atteka <aatteka@ovn.org>2017-04-21 22:23:05 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-08 08:26:08 (GMT)
commitaffd26096a590f6a58e6ee8629fcde43cfbed3f6 (patch)
tree3a080dce736df8fcce6e45f1950aa095331c251f /firmware/myricom
parent65a7a7ce7ffd91f148c2fa0b60c797005918152f (diff)
downloadlinux-affd26096a590f6a58e6ee8629fcde43cfbed3f6.tar.xz
udp: disable inner UDP checksum offloads in IPsec case
[ Upstream commit b40c5f4fde22fb98eff205b3aece05b471c24eed ] Otherwise, UDP checksum offloads could corrupt ESP packets by attempting to calculate UDP checksum when this inner UDP packet is already protected by IPsec. One way to reproduce this bug is to have a VM with virtio_net driver (UFO set to ON in the guest VM); and then encapsulate all guest's Ethernet frames in Geneve; and then further encrypt Geneve with IPsec. In this case following symptoms are observed: 1. If using ixgbe NIC, then it will complain with following error message: ixgbe 0000:01:00.1: partial checksum but l4 proto=32! 2. Receiving IPsec stack will drop all the corrupted ESP packets and increase XfrmInStateProtoError counter in /proc/net/xfrm_stat. 3. iperf UDP test from the VM with packet sizes above MTU will not work at all. 4. iperf TCP test from the VM will get ridiculously low performance because. Signed-off-by: Ansis Atteka <aatteka@ovn.org> Co-authored-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/myricom')
0 files changed, 0 insertions, 0 deletions