ipv4: add fib_net_exit_batch()
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:32 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:33 +0000 (20:41 -0800)
commit1c69576461435521b020cf0e6475b7524c1394dd
treedf3596479d0b4e22477c1899c9aa33274a9ec99b
parentfea7b201320ca222d532398685d23db2b8d55558
ipv4: add fib_net_exit_batch()

cleanup_net() is competing with other rtnl users.

Instead of acquiring rtnl at each fib_net_exit() invocation,
add fib_net_exit_batch() so that rtnl is acquired once.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_frontend.c