tcp: align tcp_sock_write_rx group
Subsystems (3)
PATCH 1/1 tcp: align tcp_sock_write_rx group
Stephen Rothwell and kernel test robot reported that some arches (parisc, hexagon) and/or compilers would not like blamed commit.
Lets make sure tcp_sock_write_rx group does not start with a hole.
While we are at it, correct tcp_sock_write_tx CACHELINE_ASSERT_GROUP_SIZE() since after the blamed commit, we went to 105 bytes.
--- include/linux/tcp.h | 2 +- net/ipv4/tcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/tcp.h +1 -1
@@ -304,7 +304,7 @@ struct tcp_sock {__cacheline_group_end (tcp_sock_write_txrx);/* RX read-write hotpath cache lines */ -__cacheline_group_begin (tcp_sock_write_rx); +__cacheline_group_begin (tcp_sock_write_rx)__aligned(8) ;u64 bytes_received;/* RFC4898 tcpEStatsAppHCThruOctetsReceived * sum(delta(rcv_nxt)), or how many bytes
net/ipv4/tcp.c +1 -1
@@ -4651,7 +4651,7 @@ static void __init tcp_struct_check(void) CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_write_tx, tsorted_sent_queue); CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_write_tx, highest_sack); CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_write_tx, ecn_flags); - CACHELINE_ASSERT_GROUP_SIZE(struct tcp_sock, tcp_sock_write_tx, 113); + CACHELINE_ASSERT_GROUP_SIZE(struct tcp_sock, tcp_sock_write_tx, 105);/* TXRX read-write hotpath cache lines */ CACHELINE_ASSERT_GROUP_MEMBER(struct tcp_sock, tcp_sock_write_txrx, pred_flags);
Signature · 1 line
2.44.0.278.ge034bb2e1d-goog
Quoted 8 lines · Eric Dumazet
Stephen Rothwell and kernel test robot reported that some arches (parisc, hexagon) and/or compilers would not like blamed commit.
Lets make sure
tcp_sock_write_rxgroup does not start with a hole.While we are at it, correct
tcp_sock_write_txCACHELINE_ASSERT_GROUP_SIZE()since after the blamed commit, we went to 105 bytes.
Quoted 6 lines
Fixes 99123622050f ("tcp: remove some holes in struct tcp_sock")Reported-by Stephen Rothwell <[email protected]>Reported-by kernel test robot <[email protected]>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 9 lines · On Fri, 1 Mar 2024 17:19:45 +0000 you wrote:
Stephen Rothwell and kernel test robot reported that some arches (parisc, hexagon) and/or compilers would not like blamed commit.
Lets make sure
tcp_sock_write_rxgroup does not start with a hole.While we are at it, correct
tcp_sock_write_txCACHELINE_ASSERT_GROUP_SIZE()since after the blamed commit, we went to 105 bytes.[...]
Here is the summary with links:
- [net-next] tcp: align tcp_sock_write_rx group
https://git.kernel.org/netdev/net-next/c/345a6e2631c1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html