]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Don't pass IP fragments to upper layer GRO handlers.
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 28 Apr 2017 08:54:32 +0000 (10:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Apr 2017 20:00:38 +0000 (16:00 -0400)
commit0d1e2d4f6331029d1606be782a8c9fd975f7f766
treeabeef13146401a752a054b63e092bd4193c3e925
parente9507ac91eab4cd8fc9bd7758c6736610b511982
ipv4: Don't pass IP fragments to upper layer GRO handlers.

Upper layer GRO handlers can not handle IP fragments, so
exit GRO processing in this case.

This fixes ESP GRO because the packet must be reassembled
before we can decapsulate, otherwise we get authentication
failures.

It also aligns IPv4 to IPv6 where packets with fragmentation
headers are not passed to upper layer GRO handlers.

Fixes: ecaae2a271dc ("esp: Add a software GRO codepath")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c