diff options
author | 2020-04-19 16:10:00 +0800 | |
---|---|---|
committer | 2020-04-21 07:18:14 +0200 | |
commit | 25a44ae93d1a490f36d88a180f11aa2650bef074 (patch) | |
tree | a1561a9fbf5b65df6842c2483db3f8b92f671c5d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfrm: espintcp: save and call old ->sk_destruct (diff) | |
download | linux-rng-25a44ae93d1a490f36d88a180f11aa2650bef074.tar.xz linux-rng-25a44ae93d1a490f36d88a180f11aa2650bef074.zip |
esp6: support ipv6 nexthdrs process for beet gso segment
For beet mode, when it's ipv6 inner address with nexthdrs set,
the packet format might be:
----------------------------------------------------
| outer | | dest | | | ESP | ESP |
| IP6 hdr| ESP | opts.| TCP | Data | Trailer | ICV |
----------------------------------------------------
Before doing gso segment in xfrm6_beet_gso_segment(), it should
skip all nexthdrs and get the real transport proto, and set
transport_header properly.
This patch is to fix it by simply calling ipv6_skip_exthdr()
in xfrm6_beet_gso_segment().
v1->v2:
- remove skb_transport_offset(), as it will always return 0
in xfrm6_beet_gso_segment(), thank Sabrina's check.
Fixes: 7f9e40eb18a9 ("esp6: add gso_segment for esp6 beet mode")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions