]> 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)
commitbc3343585f9fb2988faf858ce5f1f85b82045609
tree256338393b5552abf49c417c605b4e210dbf6b50
parent479e668cfd7e65d57b31a6e3d414106f8c4b7c11
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