lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250919204856.2977245-1-edumazet@google.com>
Date: Fri, 19 Sep 2025 20:48:48 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, 
	Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>, Neal Cardwell <ncardwell@...gle.com>, 
	Willem de Bruijn <willemb@...gle.com>, Kuniyuki Iwashima <kuniyu@...gle.com>, netdev@...r.kernel.org, 
	eric.dumazet@...il.com, Eric Dumazet <edumazet@...gle.com>
Subject: [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(-)

-- 
2.51.0.470.ga7dc726c21-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ