Skip to content

tcp: move few fields for data locality

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 8 repliesApplied 8/8
  2. v17 patches 1 replySuperseded

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: move sk_uid and sk_protocol to sock_read_txinclude/net/sock.h net/core/sock.c+5 -31 replyApplied
2/8net: move sk->sk_err_soft and sk->sk_sndbufinclude/net/sock.h net/core/sock.c net/ipv4/tcp_input.c+6 -41 replyApplied
3/8tcp: remove CACHELINE_ASSERT_GROUP_SIZE() usesnet/ipv4/tcp.c+0 -121 replyApplied
4/8tcp: move tcp->rcv_tstamp to tcp_sock_write_txrx groupDocumentation/networking/net_cachelines/tcp_sock.rst include/linux/tcp.h net/ipv4/tcp.c+4 -41 replyApplied
5/8tcp: move recvmsg_inq to tcp_sock_read_txrxDocumentation/networking/net_cachelines/tcp_sock.rst include/linux/tcp.h+3 -31 replyApplied
6/8tcp: move tcp_clean_acked to tcp_sock_read_tx groupDocumentation/networking/net_cachelines/tcp_sock.rst include/linux/tcp.h net/ipv4/tcp.c+7 -71 replyApplied
7/8tcp: move mtu_info to remove two 32bit holesinclude/linux/tcp.h+3 -31 replyApplied
8/8tcp: reclaim 8 bytes in struct request_sock_queueinclude/net/request_sock.h net/ipv4/tcp_input.c+3 -31 replyApplied

Reviews trailers per patch

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

PatchKuniyuki Iwashima
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/8] tcp: move few fields for data locality

After recent additions (PSP and AccECN) I wanted to make another round on fields locations to increase data locality.

This series manages to shrink TCP and TCPv6 objects by 128 bytes, but more importantly should reduce number of touched cache lines in TCP fast paths.

There is more to come.

v2: removed tcp CACHELINE_ASSERT_GROUP_SIZE after a kernel build bot reported an error.

Eric Dumazet (8):
net: move sk_uid and sk_protocol to sock_read_tx
net: move sk->sk_err_soft and sk->sk_sndbuf
tcp: remove CACHELINE_ASSERT_GROUP_SIZE() uses
tcp: move tcp->rcv_tstamp to tcp_sock_write_txrx group
tcp: move recvmsg_inq to tcp_sock_read_txrx
tcp: move tcp_clean_acked to tcp_sock_read_tx group
tcp: move mtu_info to remove two 32bit holes
tcp: reclaim 8 bytes in struct request_sock_queue

 .../networking/net_cachelines/tcp_sock.rst    |  6 +++---
 include/linux/tcp.h                           | 20 +++++++++----------
 include/net/request_sock.h                    |  2 +-
 include/net/sock.h                            | 10 +++++-----
 net/core/sock.c                               |  5 ++++-
 net/ipv4/tcp.c                                | 20 ++++---------------
 net/ipv4/tcp_input.c                          |  7 ++++---
 7 files changed, 31 insertions(+), 39 deletions(-)
Signature · 1 line
2.51.0.470.ga7dc726c21-goog