Skip to content

tcp: add zero copy receive

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tcp: fix SO_RCVLOWAT and RCVBUF autotuninginclude/linux/net.h include/net/tcp.h net/core/sock.c +3 more+29 -13 replies
2/5tcp: fix delayed acks behavior for SO_RCVLOWATnet/ipv4/tcp_input.c+5 -20 replies
3/5tcp: avoid extra wakeups for SO_RCVLOWAT usersinclude/net/tcp.h net/ipv4/tcp.c net/ipv4/tcp_input.c+18 -20 replies
4/5tcp: implement mmap() for zero copy receiveinclude/net/tcp.h net/ipv4/af_inet.c net/ipv4/tcp.c +1 more+117 -25 replies
5/5selftests: net: add tcp_mmap programtools/testing/selftests/net/Makefile tools/testing/selftests/net/tcp_mmap.c+439 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] tcp: add zero copy receive

This patch series add mmap() support to TCP sockets for RX zero copy.

While tcp_mmap() patch itself is quite small (~100 LOC), optimal support for asynchronous mmap() required better SO_RCVLOWAT behavior, and a test program to demonstrate how mmap() on TCP sockets can be used.

Note that mmap() (and associated munmap()) calls are adding more pressure on per-process VM semaphore, so might not show benefit for processus with high number of threads.

Eric Dumazet (5):
tcp: fix SO_RCVLOWAT and RCVBUF autotuning
tcp: fix delayed acks behavior for SO_RCVLOWAT
tcp: avoid extra wakeups for SO_RCVLOWAT users
tcp: implement mmap() for zero copy receive
selftests: net: add tcp_mmap program

 include/linux/net.h                    |   1 +
 include/net/tcp.h                      |   4 +
 net/core/sock.c                        |   5 +-
 net/ipv4/af_inet.c                     |   3 +-
 net/ipv4/tcp.c                         | 138 ++++++++
 net/ipv4/tcp_input.c                   |  22 +-
 net/ipv6/af_inet6.c                    |   3 +-
 tools/testing/selftests/net/Makefile   |   2 +
 tools/testing/selftests/net/tcp_mmap.c | 437 +++++++++++++++++++++++++
 9 files changed, 608 insertions(+), 7 deletions(-)
 create mode 100644 tools/testing/selftests/net/tcp_mmap.c
Signature · 1 line
2.17.0.484.g0c8726318c-goog