Skip to content

net/tcp-fastopen: Add new userspace API support

Wei Wang netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/tcp-fastopen: refactor cookie check logicinclude/net/tcp.h net/ipv4/tcp_fastopen.c net/ipv4/tcp_output.c+25 -142 replies
2/3net: Remove __sk_dst_reset() in tcp_v6_connect()net/ipv6/tcp_ipv6.c+0 -11 reply
3/3net/tcp-fastopen: Add new API supportinclude/linux/tcp.h include/net/inet_sock.h include/net/tcp.h +6 more+111 -1122 replies

Reviews trailers per patch

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

PatchEric DumazetYuchung Cheng
1/3A-b A-b
2/3A-b
3/3A-b A-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/3] net/tcp-fastopen: Add new userspace API support

From: Wei Wang <[email protected]>

The patch series is to add support for new userspace API for TCP fastopen sockets.
In the current code, user has to call sendto()/sendmsg() with special flag MSG_FASTOPEN for TCP fastopen sockets. This API is quite different from the normal TCP socket API and can be cumbersome for applications to make use fastopen sockets.
So this new patch introduces a new way of using TCP fastopen sockets which is similar to normal TCP sockets with a new sockopt TCP_FASTOPEN_CONNECT. More details about it is described in the third patch.
(First 2 patches are preparations for the third patch.)

Wei Wang (3):
net/tcp-fastopen: refactor cookie check logic
net: Remove __sk_dst_reset() in tcp_v6_connect() net/tcp-fastopen: Add new API support

 include/linux/tcp.h      |  3 ++-
 include/net/inet_sock.h  |  6 +++++-
 include/net/tcp.h        |  3 +++
 include/uapi/linux/tcp.h |  1 +
 net/ipv4/af_inet.c       | 31 ++++++++++++++++++++-------
 net/ipv4/tcp.c           | 35 ++++++++++++++++++++++++++++++-
 net/ipv4/tcp_fastopen.c  | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
 net/ipv4/tcp_ipv4.c      |  7 ++++++-
 net/ipv4/tcp_output.c    | 16 ++------------
 net/ipv6/tcp_ipv6.c      |  6 +++++-
 10 files changed, 136 insertions(+), 26 deletions(-)
Signature · 1 line
2.11.0.483.g087da7b7c-goog