diff options
author | Eric Dumazet <edumazet@google.com> | 2022-01-24 21:24:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-25 12:25:21 +0100 |
commit | d507204d3c5cc57d9a8bdf0a477615bb59ea1611 (patch) | |
tree | 256338393b5552abf49c417c605b4e210dbf6b50 /include/net/inet_timewait_sock.h | |
parent | Merge branch 'ionic-fw-recovery' (diff) | |
download | linux-d507204d3c5cc57d9a8bdf0a477615bb59ea1611.tar.xz linux-d507204d3c5cc57d9a8bdf0a477615bb59ea1611.zip |
tcp/dccp: add tw->tw_bslot
We want to allow inet_twsk_kill() working even if netns
has been dismantled/freed, to get rid of inet_twsk_purge().
This patch adds tw->tw_bslot to cache the bind bucket slot
so that inet_twsk_kill() no longer needs to dereference twsk_net(tw)
Signed-off-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index dfd919b3119e..c221fe2b77dd 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h @@ -72,6 +72,7 @@ struct inet_timewait_sock { tw_tos : 8; u32 tw_txhash; u32 tw_priority; + u32 tw_bslot; /* bind bucket slot */ struct timer_list tw_timer; struct inet_bind_bucket *tw_tb; }; |