Skip to content

ipv6: remove addrconf reliance on loopback

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4ipv6: get rid of net->ipv6.rt6_stats->fib_rt_uncacheinclude/net/ip6_fib.h net/ipv6/route.c net/ipv6/xfrm6_policy.c+1 -70 repliesApplied
2/4ipv6: give an IPv6 dev to blackhole_netdevnet/ipv6/addrconf.c net/ipv6/route.c+40 -592 repliesApplied
3/4ipv6: add (struct uncached_list)->quarantine listnet/ipv6/route.c+14 -30 repliesApplied
4/4ipv4: add (struct uncached_list)->quarantine listnet/ipv4/route.c+9 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] ipv6: remove addrconf reliance on loopback

From: Eric Dumazet <[email protected]>

Second patch in this series removes IPv6 requirement about the netns loopback device being the last device being dismantled.

This was needed because rt6_uncached_list_flush_dev() and ip6_dst_ifdown() had to switch dst dev to a known device (loopback).

Instead of loopback, we can use the (hidden) blackhole_netdev which is also always there.

This will allow future simplfications of netdev_run_to() and other parts of the stack like default_device_exit_batch().

Last two patches are optimizations for both IP families.

Eric Dumazet (4):
ipv6: get rid of net->ipv6.rt6_stats->fib_rt_uncache
ipv6: give an IPv6 dev to blackhole_netdev
ipv6: add (struct uncached_list)->quarantine list
ipv4: add (struct uncached_list)->quarantine list

 include/net/ip6_fib.h   |  3 +-
 net/ipv4/route.c        | 12 +++++--
 net/ipv6/addrconf.c     | 78 +++++++++++++++++------------------------
 net/ipv6/route.c        | 42 +++++++++++-----------
 net/ipv6/xfrm6_policy.c |  1 -
 5 files changed, 64 insertions(+), 72 deletions(-)
Signature · 1 line
2.35.1.265.g69c8d7142f-goog