Skip to content

RFC UDP: implement GRO support for UDP_SEGMENT socket

Paolo Abeni netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: add new helper to update an already registered offloadinclude/net/protocol.h net/ipv4/protocol.c net/ipv6/protocol.c+22 -80 replies
2/4net: enable UDP gro on demand.include/linux/udp.h include/net/addrconf.h include/net/udp.h +5 more+117 -64 replies
3/4udp: implement GRO plain UDP sockets.include/linux/udp.h net/ipv4/udp.c net/ipv4/udp_offload.c +1 more+90 -262 replies
4/4selftests: add GRO support, fix port option processingtools/testing/selftests/net/udpgso_bench_rx.c+16 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] UDP: implement GRO support for UDP_SEGMENT socket

This series implements GRO support for UDP sockets, as the RX counterpart of ommit bec1f6f69736 ("udp: generate gso with UDP_SEGMENT").
The first two patches allow UDP GRO registration on demand, avoiding additional overhead when no UDP_SEGMENT sockets are created, actually decreasing the GRO engine costs for the default configuration for UDP packets. They could possibly live on their own.
The third patch contains the actual UDP GRO implementation, while the 4th patch allows using the udpgso_bench_rx program under selftest to trigger UDP GRO. A full self-test is not there yet.

Paolo Abeni (4):
net: add new helper to update an already registered offload
net: enable UDP gro on demand.
udp: implement GRO plain UDP sockets.
selftests: add GRO support, fix port option processing

 include/linux/udp.h                           |  18 +-
 include/net/addrconf.h                        |   1 +
 include/net/protocol.h                        |   4 +
 include/net/udp.h                             |  12 ++
 net/ipv4/protocol.c                           |  13 +-
 net/ipv4/udp.c                                |   3 +
 net/ipv4/udp_offload.c                        | 170 +++++++++++++++---
 net/ipv4/udp_tunnel.c                         |   1 +
 net/ipv6/af_inet6.c                           |   1 +
 net/ipv6/protocol.c                           |  13 +-
 net/ipv6/udp_offload.c                        |  31 +++-
 tools/testing/selftests/net/udpgso_bench_rx.c |  18 +-
 12 files changed, 244 insertions(+), 41 deletions(-)
Signature · 1 line
2.17.1