diff options
author | Eric Dumazet <edumazet@google.com> | 2021-06-29 15:53:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-29 20:54:36 +0200 |
commit | 3f8ad50a9e43b6a59070e6c9c5eec79626f81095 (patch) | |
tree | f5fa3bafb86fd33c0f6394a9590e22460a954700 | |
parent | tcp_yeah: check struct yeah size at compile time (diff) | |
download | linux-3f8ad50a9e43b6a59070e6c9c5eec79626f81095.tar.xz linux-3f8ad50a9e43b6a59070e6c9c5eec79626f81095.zip |
tcp: change ICSK_CA_PRIV_SIZE definition
Instead of a magic number (13 currently) and having
to change it every other year, use sizeof_field() macro.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/inet_connection_sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 3c8c59471bc1..b06c2d02ec84 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h @@ -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 */ |