diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-10-30 10:04:04 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-10-31 09:20:35 +0100 |
commit | 73b9fc49b4c0116a04eda3979f64ed9b540b153c (patch) | |
tree | 362ece5f48012511aabacfe60ba66a8104d8c12c /net/netlink/diag.c | |
parent | xfrm: Clear sk_dst_cache when applying per-socket policy. (diff) | |
download | linux-73b9fc49b4c0116a04eda3979f64ed9b540b153c.tar.xz linux-73b9fc49b4c0116a04eda3979f64ed9b540b153c.zip |
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: f1bd7d659ef0 ("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>
Diffstat (limited to 'net/netlink/diag.c')
0 files changed, 0 insertions, 0 deletions