Skip to content

net: gro: reduce extension header parsing overhead

Richard Gobert linux-kselftest lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyApplied 3/3
  2. v23 patches 8 repliesSuperseded
  3. v13 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Removed previously added IPv6 extension header length constant and using sizeof(*opth) instead.
- Removed unnecessary conditional in gro selftest framework
- v2:
https://lore.kernel.org/netdev/[email protected]/

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: gso: add HBH extension header offload supportnet/ipv6/exthdrs_offload.c net/ipv6/ip6_offload.c+22 -140 repliesApplied
2/3net: gro: parse ipv6 ext headers without frag0 invalidationnet/ipv6/ip6_offload.c+41 -101 replyApplied
3/3selftests/net: fix GRO coalesce test and add ext header coalesce teststools/testing/selftests/net/gro.c+87 -60 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchWillem de BruijnDavid AhernEric Dumazet
1/3R-b R-b R-b
2/3R-b R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] net: gro: reduce extension header parsing overhead

This series attempts to reduce the parsing overhead of IPv6 extension headers in GRO and GSO, by removing extension header specific code and enabling the frag0 fast path.

The following changes were made:
- Removed some unnecessary HBH conditionals by adding HBH offload to inet6_offloads
- Added a utility function to support frag0 fast path in ipv6_gro_receive
- Added selftests for IPv6 packets with extension headers in GRO

Richard

v2 -> v3:
- Removed previously added IPv6 extension header length constant and using sizeof(*opth) instead.
- Removed unnecessary conditional in gro selftest framework
- v2:
https://lore.kernel.org/netdev/[email protected]/

v1 -> v2:
- Added a minimum IPv6 extension header length constant to make code self documenting.
- Added new selftest which checks that packets with different extension header payloads do not coalesce.
- Added more info in the second commit message regarding the code changes.
- v1:
https://lore.kernel.org/netdev/[email protected]/

Richard Gobert (3):
net: gso: add HBH extension header offload support
net: gro: parse ipv6 ext headers without frag0 invalidation selftests/net: fix GRO coalesce test and add ext header coalesce tests

 net/ipv6/exthdrs_offload.c        | 11 ++++
 net/ipv6/ip6_offload.c            | 76 +++++++++++++++++--------
 tools/testing/selftests/net/gro.c | 93 +++++++++++++++++++++++++++++--
 3 files changed, 150 insertions(+), 30 deletions(-)
Signature · 1 line
2.36.1