]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix GSO for IPsec with GRE tunnel.
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 30 Oct 2017 09:04:04 +0000 (10:04 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 31 Oct 2017 08:20:35 +0000 (09:20 +0100)
commit5db42f81036dc584f93ee5199071ff308e50c4ac
tree362ece5f48012511aabacfe60ba66a8104d8c12c
parentb59295deaaebeead9b26e30731d73fc40f0682d4
xfrm: Fix GSO for IPsec with GRE tunnel.

We reset the encapsulation field of the skb too early
in xfrm_output. As a result, the GRE GSO handler does
not segment the packets. This leads to a performance
drop down. We fix this by resetting the encapsulation
field right before we do the transformation, when
the inner headers become invalid.

Fixes: 2ebac1a0d49f ("xfrm: Add encapsulation header offsets while SKB is not encrypted")
Reported-by: Vicente De Luca <vdeluca@zendesk.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_output.c