]> git.baikalelectronics.ru Git - kernel.git/commit
tcp/dccp: add tw->tw_bslot
authorEric Dumazet <edumazet@google.com>
Mon, 24 Jan 2022 20:24:52 +0000 (12:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 11:25:21 +0000 (11:25 +0000)
commitd507204d3c5cc57d9a8bdf0a477615bb59ea1611
tree256338393b5552abf49c417c605b4e210dbf6b50
parent8a0de61c40af634ce08458ae088b40c1103ee1ad
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>
include/net/inet_timewait_sock.h
net/ipv4/inet_timewait_sock.c