Skip to content

tcp: listener refactoring preparations

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14tcp/dccp: constify send_synack and send_reset socket argumentinclude/net/request_sock.h net/dccp/dccp.h net/dccp/ipv4.c +4 more+14 -140 replies
2/14tcp: remove unused len argument from tcp_rcv_state_process()include/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_ipv4.c +2 more+7 -80 replies
3/14tcp: remove tcp_rcv_state_process() tcp_hdr argumentinclude/net/tcp.h net/ipv4/tcp_input.c net/ipv4/tcp_ipv4.c +2 more+6 -70 replies
4/14dccp: use inet6_csk_route_req() helperinclude/net/inet6_connection_sock.h net/dccp/ipv6.c net/ipv6/inet6_connection_sock.c +1 more+13 -210 replies
5/14inet: constify inet_csk_route_child_sock() socket argumentinclude/net/inet_connection_sock.h net/ipv4/inet_connection_sock.c+3 -20 replies
6/14inet: constify __inet_inherit_port() sock argumentinclude/net/inet_hashtables.h net/ipv4/inet_hashtables.c+2 -20 replies
7/14net: constify sk_gfp_atomic() sock argumentinclude/net/sock.h+1 -10 replies
8/14dccp: constify dccp_create_openreq_child() sock argumentnet/dccp/dccp.h net/dccp/minisocks.c+2 -20 replies
9/14tcp: constify tcp_create_openreq_child() socket argumentinclude/net/tcp.h net/ipv4/tcp_minisocks.c+4 -20 replies
10/14tcp/dccp: constify syn_recv_sock() method sock argumentinclude/net/inet_connection_sock.h include/net/tcp.h net/dccp/dccp.h +4 more+12 -90 replies
11/14tcp: cookie_init_sequence() cleanupsinclude/net/tcp.h net/ipv4/syncookies.c net/ipv6/syncookies.c+12 -180 replies
12/14tcp: constify tcp_v{4|6}_route_req() sock argumentinclude/net/tcp.h net/ipv4/tcp_ipv4.c net/ipv6/tcp_ipv6.c+5 -30 replies
13/14tcp: constify tcp_syn_flood_action() socket argumentinclude/net/request_sock.h net/ipv4/tcp_input.c+7 -70 replies
14/14tcp: prepare fastopen code for upcoming listener changesinclude/linux/tcp.h include/net/request_sock.h net/core/request_sock.c +6 more+35 -600 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 00/14] tcp: listener refactoring preparations

This patch series makes changes to TCP/DCCP stacks so that we can switch listener code to lockless mode.

This is done by marking const the listener socket in all appropriate paths.

FastOpen code had to be changed to not dynamically allocate a very small structure to make code simpler for following changes.

Eric Dumazet (14):
tcp/dccp: constify send_synack and send_reset socket argument
tcp: remove unused len argument from tcp_rcv_state_process()
tcp: remove tcp_rcv_state_process() tcp_hdr argument
dccp: use inet6_csk_route_req() helper
inet: constify inet_csk_route_child_sock() socket argument
inet: constify __inet_inherit_port() sock argument
net: constify sk_gfp_atomic() sock argument
dccp: constify dccp_create_openreq_child() sock argument
tcp: constify tcp_create_openreq_child() socket argument tcp/dccp: constify syn_recv_sock() method sock argument
tcp: cookie_init_sequence() cleanups
tcp: constify tcp_v{4|6}_route_req() sock argument
tcp: constify tcp_syn_flood_action() socket argument
tcp: prepare fastopen code for upcoming listener changes

 include/linux/tcp.h                 | 22 ++++------------------
 include/net/inet6_connection_sock.h |  2 +-
 include/net/inet_connection_sock.h  |  5 +++--
 include/net/inet_hashtables.h       |  2 +-
 include/net/request_sock.h          | 16 ++++++----------
 include/net/sock.h                  |  2 +-
 include/net/tcp.h                   | 28 ++++++++++++++--------------
 net/core/request_sock.c             |  9 ++++++++-
 net/dccp/dccp.h                     |  6 +++---
 net/dccp/ipv4.c                     |  5 +++--
 net/dccp/ipv6.c                     | 24 +++++++-----------------
 net/dccp/minisocks.c                |  4 ++--
 net/ipv4/af_inet.c                  | 10 +++-------
 net/ipv4/inet_connection_sock.c     | 19 +++++++++----------
 net/ipv4/inet_hashtables.c          |  2 +-
 net/ipv4/syncookies.c               |  6 +-----
 net/ipv4/tcp.c                      | 14 ++------------
 net/ipv4/tcp_fastopen.c             | 10 +++++-----
 net/ipv4/tcp_input.c                | 17 +++++++++--------
 net/ipv4/tcp_ipv4.c                 | 13 +++++++------
 net/ipv4/tcp_minisocks.c            |  7 ++++---
 net/ipv6/inet6_connection_sock.c    |  8 +++++---
 net/ipv6/syncookies.c               |  5 +----
 net/ipv6/tcp_ipv6.c                 | 33 ++++++++++++++++++---------------
 24 files changed, 118 insertions(+), 151 deletions(-)
Signature · 1 line
2.6.0.rc2.230.g3dd15c0