]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gue: fix remcsum when GRO on and CHECKSUM_PARTIAL boundary is outer UDP
authorK. Den <den@klaipeden.com>
Mon, 31 Jul 2017 16:05:39 +0000 (01:05 +0900)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 15 Sep 2017 03:39:10 +0000 (20:39 -0700)
commit5953bfc0c9cf9442d40c127bd45aecbb22477ca3
tree4e06dc9d553c57c6894701d234e6d9a6a150b743
parent775c19cbe203ca9e188ab504caf3d008b058ee14
gue: 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 b7fe10e5ebac ("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: b7fe10e5ebac ("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>
Orabug: 25879842
(cherry picked from commit 1bff8a0c1f8c236209ee369b7952751c04eaa71a)
Signed-off-by: Cathy Zhou <Cathy.Zhou@Oracle.COM>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
net/ipv4/fou.c