ip6mr: ip6mr_sk_done() can exit early in common cases
authorEric Dumazet <edumazet@google.com>
Fri, 4 Feb 2022 20:15:46 +0000 (12:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Feb 2022 15:20:34 +0000 (15:20 +0000)
commitf2f2325ec79970807012dfc9e716cdbb02d9b574
treeafa422a186e6a6e198150f0f87bd202d539b2c7d
parent145c7a793838add5e004e7d49a67654dc7eba147
ip6mr: ip6mr_sk_done() can exit early in common cases

In many cases, ip6mr_sk_done() is called while no ipmr socket
has been registered.

This removes 4 rtnl acquisitions per netns dismantle,
with following callers:

igmp6_net_exit(), tcpv6_net_exit(), ndisc_net_exit()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6mr.c