]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ppp: Split ppp_exit_net() to ->exit_rtnl().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 18 Apr 2025 00:32:34 +0000 (17:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 23 Apr 2025 02:07:41 +0000 (19:07 -0700)
commit7ee32072c732799bcb7221cb97adc0e9e52e3792
tree6260449ca843bb280a201d44894278d3ee10a85d
parent81eccc131bc1d53c9f7fa0d8c241589c514adb4e
ppp: Split ppp_exit_net() to ->exit_rtnl().

ppp_exit_net() unregisters devices related to the netns under
RTNL and destroys lists and IDR.

Let's use ->exit_rtnl() for the device unregistration part to
save RTNL dances for each netns.

Note that we delegate the for_each_netdev_safe() part to
default_device_exit_batch() and replace unregister_netdevice_queue()
with ppp_nl_dellink() to align with bond, geneve, gtp, and pfcp.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250418003259.48017-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ppp/ppp_generic.c