tcp: move sysctl_tcp_shrink_window to netns_ipv4_read_txrx group
Subsystems (2)
PATCH 1/1 tcp: move sysctl_tcp_shrink_window to netns_ipv4_read_txrx group
Commit 18fd64d25422 ("netns-ipv4: reorganize netns_ipv4 fast path variables") missed that __tcp_select_window() is reading net->ipv4.sysctl_tcp_shrink_window.
Move this field to netns_ipv4_read_txrx group, as __tcp_select_window() is used both in tx and rx paths.
Saves a potential cache line miss.
--- include/net/netns/ipv4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/netns/ipv4.h +1 -1
@@ -74,6 +74,7 @@ struct netns_ipv4 {/* TXRX readonly hotpath cache lines */ __cacheline_group_begin (netns_ipv4_read_txrx); +u8 sysctl_tcp_shrink_window;__cacheline_group_end (netns_ipv4_read_txrx);/* RX readonly hotpath cache line */
@@ -122,7 +123,6 @@ struct netns_ipv4 {#endif bool fib_has_custom_local_routes;bool fib_offload_disabled; -u8 sysctl_tcp_shrink_window;#ifdef CONFIG_IP_ROUTE_CLASSID atomic_t fib_num_tclassid_users;#endif
Signature · 1 line
2.53.0.473.g4a7958ca14-goog
Quoted 11 lines · Eric Dumazet
Commit
18fd64d25422("netns-ipv4: reorganizenetns_ipv4fast path variables") missed that__tcp_select_window()is readingnet->ipv4.sysctl_tcp_shrink_window.Move this field to
netns_ipv4_read_txrxgroup, as__tcp_select_window()is used both in tx and rx paths.Saves a potential cache line miss.
Signed-off-by Eric Dumazet <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Sat, 7 Mar 2026 09:22:14 +0000 you wrote:
Commit
18fd64d25422("netns-ipv4: reorganizenetns_ipv4fast path variables") missed that__tcp_select_window()is readingnet->ipv4.sysctl_tcp_shrink_window.Move this field to
netns_ipv4_read_txrxgroup, as__tcp_select_window()is used both in tx and rx paths.[...]
Here is the summary with links:
- [net-next] tcp: move sysctl_tcp_shrink_window to netns_ipv4_read_txrx group
https://git.kernel.org/netdev/net-next/c/e8eb33d650cd
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html