On Thu, Jun 11, 2026 at 11:32 PM Kuniyuki Iwashima [off-list ref] wrote:
Currently, we flush all IPv4 routes at ->exit_batch() during
netns dismantle, which requires an extra RTNL.
IPv4 routes are not added from the fast path unlike IPv6, so
we can flush routes before default_device_exit_batch().
However, there is implicit ordering between ip_fib_net_exit()
and default_device_exit_batch().
This series detangles it and moves ip_fib_net_exit() to
->exit_rtnl() to save the RTNL dance.
The same change for IPv6 will need more work.
For the series:
Reviewed-by: Eric Dumazet <edumazet@google.com>
Thanks!