diff options
author | Eric Dumazet <edumazet@google.com> | 2022-02-11 00:42:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-11 14:44:27 +0300 |
commit | e5f80fcf869a18cc750d6b350bbfac82df292e0b (patch) | |
tree | cb0581c02f68e783da214365d835b1ad49db4961 /lib/atomic64_test.c | |
parent | 2d4feb2c1ba728fe53d6f80705b2d7e5c5b666a5 (diff) | |
download | linux-e5f80fcf869a18cc750d6b350bbfac82df292e0b.tar.xz |
ipv6: give an IPv6 dev to blackhole_netdev
IPv6 addrconf notifiers wants the loopback device to
be the last device being dismantled at netns deletion.
This caused many limitations and work arounds.
Back in linux-5.3, Mahesh added a per host blackhole_netdev
that can be used whenever we need to make sure objects no longer
refer to a disappearing device.
If we attach to blackhole_netdev an ip6_ptr (allocate an idev),
then we can use this special device (which is never freed)
in place of the loopback_dev (which can be freed).
This will permit improvements in netdev_run_todo() and other parts
of the stack where had steps to make sure loopback_dev was
the last device to disappear.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/atomic64_test.c')
0 files changed, 0 insertions, 0 deletions