diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2023-12-19 03:18:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-23 01:15:35 +0300 |
commit | 8191792c18c55ee444588100cf0464bd8c0bf5f3 (patch) | |
tree | 4cd74b2f95a306a0a4b015318e8884092ef55a3a /include/net/inet_timewait_sock.h | |
parent | 770041d337a85923810dd3aeebea38037a28d534 (diff) | |
download | linux-8191792c18c55ee444588100cf0464bd8c0bf5f3.tar.xz |
tcp: Remove dead code and fields for bhash2.
Now all sockets including TIME_WAIT are linked to bhash2 using
sock_common.skc_bind_node.
We no longer use inet_bind2_bucket.deathrow, sock.sk_bind2_node,
and inet_timewait_sock.tw_bind2_node.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_timewait_sock.h')
-rw-r--r-- | include/net/inet_timewait_sock.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index b14999ff55db..f28da08a37b4 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h @@ -75,13 +75,9 @@ struct inet_timewait_sock { struct timer_list tw_timer; struct inet_bind_bucket *tw_tb; struct inet_bind2_bucket *tw_tb2; - struct hlist_node tw_bind2_node; }; #define tw_tclass tw_tos -#define twsk_for_each_bound_bhash2(__tw, list) \ - hlist_for_each_entry(__tw, list, tw_bind2_node) - static inline struct inet_timewait_sock *inet_twsk(const struct sock *sk) { return (struct inet_timewait_sock *)sk; |