Skip to content

tcp listener refactoring part 15

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8inet: cache listen_sock_qlen() and read rskq_defer_accept oncenet/ipv4/inet_connection_sock.c+9 -60 replies
2/8inet: remove sk_listener parameter from syn_ack_timeout()include/linux/dccp.h include/net/request_sock.h include/net/tcp.h +3 more+10 -90 replies
3/8inet: remove some sk_listener dependenciesnet/ipv4/inet_connection_sock.c+11 -110 replies
4/8net: convert syn_wait_lock to a spinlockinclude/net/request_sock.h net/core/request_sock.c net/ipv4/inet_connection_sock.c +3 more+24 -290 replies
5/8ipv4: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request socketsinclude/net/tcp.h net/ipv4/tcp_ipv4.c+35 -350 replies
6/8ipv6: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request socketsnet/ipv6/tcp_ipv6.c+12 -350 replies
7/8ipv4: dccp: handle ICMP messages on DCCP_NEW_SYN_RECV request socketsinclude/linux/dccp.h net/dccp/dccp.h net/dccp/ipv4.c+37 -360 replies
8/8ipv6: dccp: handle ICMP messages on DCCP_NEW_SYN_RECV request socketsnet/dccp/ipv6.c+8 -330 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/8] tcp listener refactoring part 15

I am trying to make the final patch pushing request socks into ehash as small as possible. In this patch series, I made various adjustments for the SYNACK generation, allowing me to reach 1 Mpps SYNACK in my stress test (still hitting LISTENER spinlock of course, and the syn_wait spinlock)

I also converted the ICMP handlers a bit ahead of time :

They no longer need to get the LISTENER socket, and can use only a lookup in ehash table. No big deal if we ignore ICMP for requests socks before the final steps.

Eric Dumazet (8):
inet: cache listen_sock_qlen() and read rskq_defer_accept once
inet: remove sk_listener parameter from syn_ack_timeout()
inet: remove some sk_listener dependencies
net: convert syn_wait_lock to a spinlock
ipv4: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request sockets
ipv6: tcp: handle ICMP messages on TCP_NEW_SYN_RECV request sockets
ipv4: dccp: handle ICMP messages on DCCP_NEW_SYN_RECV request sockets
ipv6: dccp: handle ICMP messages on DCCP_NEW_SYN_RECV request sockets

 include/linux/dccp.h             |  4 +-
 include/net/request_sock.h       | 14 ++-----
 include/net/tcp.h                |  3 +-
 net/core/request_sock.c          | 14 +++----
 net/dccp/dccp.h                  |  1 +
 net/dccp/ipv4.c                  | 72 +++++++++++++++++------------------
 net/dccp/ipv6.c                  | 41 ++++----------------
 net/ipv4/inet_connection_sock.c  | 47 ++++++++++++-----------
 net/ipv4/inet_diag.c             |  4 +-
 net/ipv4/tcp_ipv4.c              | 81 ++++++++++++++++++++--------------------
 net/ipv4/tcp_timer.c             |  8 ++--
 net/ipv6/inet6_connection_sock.c |  4 +-
 net/ipv6/tcp_ipv6.c              | 47 ++++++-----------------
 13 files changed, 146 insertions(+), 194 deletions(-)
Signature · 1 line
2.2.0.rc0.207.ga3a616c