Skip to content

net: gro: remove network_header use, move p->{flush/flush_id} calculations to L4

Richard Gobert linux-kselftest lkml netdev 4 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. v10 Latest3 patches 7 repliesApplied 3/3
  2. v93 patches 7 repliesSuperseded
  3. v83 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v73 patches9 repliesSuperseded

Changes in v10 from the cover letter

- rebased on latest net-next
- improved code readability in inet_gro_flush
- v9:
https://lore.kernel.org/all/[email protected]/

Patches in v10 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: gro: use cb instead of skb->network_headerinclude/net/gro.h net/ipv4/af_inet.c net/ipv4/tcp_offload.c +2 more+13 -111 replyApplied
2/3net: gro: move L3 flush checks to tcp_gro_receive and udp_gro_receive_segmentinclude/net/gro.h net/core/gro.c net/ipv4/af_inet.c +3 more+73 -846 repliesApplied
3/3selftests/net: add flush id selfteststools/testing/selftests/net/gro.c+138 -01 replyApplied

Reviews trailers per patch

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

PatchWillem de Bruijn
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH net-next v10 0/3] net: gro: remove network_header use, move p->{flush/flush_id} calculations to L4

The cb fields network_offset and inner_network_offset are used instead of skb->network_header throughout GRO.

These fields are then leveraged in the next commit to remove flush_id state from napi_gro_cb, and stateful code in {ipv6,inet}_gro_receive which may be unnecessarily complicated due to encapsulation support in GRO. These fields are checked in L4 instead.

3rd patch adds tests for different flush_id flows in GRO.

v9 -> v10:
- rebased on latest net-next
- improved code readability in inet_gro_flush
- v9:
https://lore.kernel.org/all/[email protected]/

v8 -> v9:
- rename skb_gro_network_offset to skb_gro_receive_network_offset for clarification
- improved code readability
- v8:
https://lore.kernel.org/all/[email protected]/

v7 -> v8:
- Remove network_header use in gro
- Re-send commits after the dependent patch to net was applied
- v7:
https://lore.kernel.org/all/[email protected]/

v6 -> v7:
- Moved bug fixes to a separate submission in net
- Added UDP fwd benchmark
- v6:
https://lore.kernel.org/all/[email protected]/

v5 -> v6:
- Write inner_network_offset in vxlan and geneve
- Ignore is_atomic when DF=0
- v5:
https://lore.kernel.org/all/[email protected]/

v4 -> v5:
- Add 1st commit - flush id checks in udp_gro_receive segment which can be backported by itself
- Add TCP measurements for the 5th commit
- Add flush id tests to ensure flush id logic is preserved in GRO
- Simplify gro_inet_flush by removing a branch
- v4:
https://lore.kernel.org/all/[email protected]/

v3 -> v4:
- Fix code comment and commit message typos
- v3:
https://lore.kernel.org/all/[email protected]/

v2 -> v3:
- Use napi_gro_cb instead of skb->{offset}
- v2:
https://lore.kernel.org/all/[email protected]/

v1 -> v2:
- Pass p_off in *_gro_complete to fix UDP bug
- Remove more conditionals and memory fetches from inet_gro_flush
- v1:
https://lore.kernel.org/netdev/[email protected]/

Richard Gobert (3):
net: gro: use cb instead of skb->network_header
net: gro: move L3 flush checks to tcp_gro_receive and
udp_gro_receive_segment
selftests/net: add flush id selftests

 include/net/gro.h                 |  85 +++++++++++++++---
 net/core/gro.c                    |   3 -
 net/ipv4/af_inet.c                |  45 +---------
 net/ipv4/tcp_offload.c            |  20 ++---
 net/ipv4/udp_offload.c            |   9 +-
 net/ipv6/ip6_offload.c            |  16 +---
 net/ipv6/tcpv6_offload.c          |   3 +-
 tools/testing/selftests/net/gro.c | 138 ++++++++++++++++++++++++++++++
 8 files changed, 224 insertions(+), 95 deletions(-)
Signature · 1 line
2.36.1