tcp: change ICSK_CA_PRIV_SIZE definition
Subsystems (2)
PATCH 1/1 tcp: change ICSK_CA_PRIV_SIZE definition
From: Eric Dumazet <[email protected]>
Instead of a magic number (13 currently) and having to change it every other year, use sizeof_field() macro.
Signed-off-by Eric Dumazet <[email protected]>
--- include/net/inet_connection_sock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/inet_connection_sock.h +1 -1
@@ -135,7 +135,7 @@ struct inet_connection_sock {u32 icsk_user_timeout;u64 icsk_ca_priv[104 /sizeof (u64)]; -#define ICSK_CA_PRIV_SIZE (13 * sizeof(u64)) +#define ICSK_CA_PRIV_SIZE sizeof_field(struct inet_connection_sock, icsk_ca_priv) };#define ICSK_TIME_RETRANS 1/* Retransmit timer */
Signature · 1 line
2.32.0.93.g670b81a890-goog
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 8 lines · On Tue, 29 Jun 2021 06:53:14 -0700 you wrote:
From: Eric Dumazet <[email protected]>
Instead of a magic number (13 currently) and having to change it every other year, use
sizeof_field()macro.Signed-off-by Eric Dumazet <[email protected]>[...]
Here is the summary with links:
- [net-next] tcp: change ICSK_CA_PRIV_SIZE definition
https://git.kernel.org/netdev/net-next/c/3f8ad50a9e43
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html