diff options
author | 2022-01-24 12:24:54 -0800 | |
---|---|---|
committer | 2022-01-25 11:25:21 +0000 | |
commit | 0dad4087a86a2cbe177404dc73f18ada26a2c390 (patch) | |
tree | 53657e9ea34bc1992f4a6dbec1268406482e8580 /net/ipv6/tcp_ipv6.c | |
parent | tcp/dccp: no longer use twsk_net(tw) from tw_timer_handler() (diff) | |
download | linux-0dad4087a86a2cbe177404dc73f18ada26a2c390.tar.gz linux-0dad4087a86a2cbe177404dc73f18ada26a2c390.tar.bz2 linux-0dad4087a86a2cbe177404dc73f18ada26a2c390.zip |
tcp/dccp: get rid of inet_twsk_purge()
Prior patches in the series made sure tw_timer_handler()
can be fired after netns has been dismantled/freed.
We no longer have to scan a potentially big TCP ehash
table at netns dismantle.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 075ee8a2df3b..1e55ee98dfed 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -2237,15 +2237,9 @@ static void __net_exit tcpv6_net_exit(struct net *net) inet_ctl_sock_destroy(net->ipv6.tcp_sk); } -static void __net_exit tcpv6_net_exit_batch(struct list_head *net_exit_list) -{ - inet_twsk_purge(&tcp_hashinfo, AF_INET6); -} - static struct pernet_operations tcpv6_net_ops = { .init = tcpv6_net_init, .exit = tcpv6_net_exit, - .exit_batch = tcpv6_net_exit_batch, }; int __init tcpv6_init(void) |