Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tcp: move tcp_clean_acked to tcp_sock_read_tx group

tp->tcp_clean_acked is fetched in tx path when snd_una is updated.

This field thus belongs to tcp_sock_read_tx group.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250919204856.2977245-7-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
a105ea47 969904dc

+7 -7
+1 -1
Documentation/networking/net_cachelines/tcp_sock.rst
··· 27 27 u32 snd_una read_mostly read_write tcp_wnd_end,tcp_urg_mode,tcp_minshall_check,tcp_cwnd_validate(tx);tcp_ack,tcp_may_update_window,tcp_clean_rtx_queue(write),tcp_ack_tstamp(rx) 28 28 u32 snd_sml read_write tcp_minshall_check,tcp_minshall_update 29 29 u32 rcv_tstamp read_write read_write tcp_ack 30 - void * tcp_clean_acked read_mostly tcp_ack 30 + void * tcp_clean_acked read_mostly tcp_ack 31 31 u32 lsndtime read_write tcp_slow_start_after_idle_check,tcp_event_data_sent 32 32 u32 last_oow_ack_time 33 33 u32 compressed_ack_rcv_nxt
+3 -3
include/linux/tcp.h
··· 215 215 u16 gso_segs; /* Max number of segs per GSO packet */ 216 216 /* from STCP, retrans queue hinting */ 217 217 struct sk_buff *retransmit_skb_hint; 218 + #if defined(CONFIG_TLS_DEVICE) 219 + void (*tcp_clean_acked)(struct sock *sk, u32 acked_seq); 220 + #endif 218 221 __cacheline_group_end(tcp_sock_read_tx); 219 222 220 223 /* TXRX read-mostly hotpath cache lines */ ··· 253 250 struct minmax rtt_min; 254 251 /* OOO segments go in this rbtree. Socket lock must be held. */ 255 252 struct rb_root out_of_order_queue; 256 - #if defined(CONFIG_TLS_DEVICE) 257 - void (*tcp_clean_acked)(struct sock *sk, u32 acked_seq); 258 - #endif 259 253 __cacheline_group_end(tcp_sock_read_rx); 260 254 261 255 /* TX read-write hotpath cache lines */
+3 -3
net/ipv4/tcp.c
··· 5101 5101 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_tx, notsent_lowat); 5102 5102 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_tx, gso_segs); 5103 5103 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_tx, retransmit_skb_hint); 5104 + #if IS_ENABLED(CONFIG_TLS_DEVICE) 5105 + CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_tx, tcp_clean_acked); 5106 + #endif 5104 5107 5105 5108 /* TXRX read-mostly hotpath cache lines */ 5106 5109 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_txrx, tsoffset); ··· 5127 5124 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_rx, rtt_min); 5128 5125 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_rx, out_of_order_queue); 5129 5126 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_rx, snd_ssthresh); 5130 - #if IS_ENABLED(CONFIG_TLS_DEVICE) 5131 - CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_read_rx, tcp_clean_acked); 5132 - #endif 5133 5127 5134 5128 /* TX read-write hotpath cache lines */ 5135 5129 CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_write_tx, segs_out);