]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix remcsum when GRO on and CHECKSUM_PARTIAL boundary is outer UDP
authorK. Den <den@klaipeden.com>
Mon, 31 Jul 2017 16:05:20 +0000 (01:05 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Aug 2017 23:09:14 +0000 (16:09 -0700)
commit1f2d2e1cc31ca3ca2e9f1118eafc7016dd726855
treeb8088c2293925f3b641aaf73e34bc5107538e3f8
parentdec17b456e4f51cb7f1b129196158ccfa10d99b5
vxlan: fix remcsum when GRO on and CHECKSUM_PARTIAL boundary is outer UDP

In the case that GRO is turned on and the original received packet is
CHECKSUM_PARTIAL, if the outer UDP header is exactly at the last
csum-unnecessary point, which for instance could occur if the packet
comes from another Linux guest on the same Linux host, we have to do
either remcsum_adjust or set up CHECKSUM_PARTIAL again with its
csum_start properly reset considering RCO.

However, since 6a88717f614f("gro: Fix remcsum offload to deal with frags
in GRO") that barrier in such case could be skipped if GRO turned on,
hence we pass over it and the inner L4 validation mistakenly reckons
it as a bad csum.

This patch makes remcsum_offload being reset at the same time of GRO
remcsum cleanup, so as to make it work in such case as before.

Fixes: 6a88717f614f ("gro: Fix remcsum offload to deal with frags in GRO")
Signed-off-by: Koichiro Den <den@klaipeden.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c