tcp: move icsk_clean_acked to a better location
authorEric Dumazet <edumazet@google.com>
Mon, 17 Mar 2025 08:53:13 +0000 (08:53 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Mar 2025 16:55:18 +0000 (09:55 -0700)
commit1937a0be28c01a13e18912602b8eff08d7db77cf
treeecdc8081a1461fd493fc8cf74614d569974bcdc0
parent8fa649fd7d3009769c7289d0c31c319b72bc42c4
tcp: move icsk_clean_acked to a better location

As a followup of my presentation in Zagreb for netdev 0x19:

icsk_clean_acked is only used by TCP when/if CONFIG_TLS_DEVICE
is enabled from tcp_ack().

Rename it to tcp_clean_acked, move it to tcp_sock structure
in the tcp_sock_read_rx for better cache locality in TCP
fast path.

Define this field only when CONFIG_TLS_DEVICE is enabled
saving 8 bytes on configs not using it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250317085313.2023214-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/net_cachelines/tcp_sock.rst
include/linux/tcp.h
include/net/inet_connection_sock.h
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/tls/tls_device.c