mbox series

[v1,net-next,0/3] bareudp/pfcp/ppp: Improve netns dismantle.

Message ID 20250214081818.81658-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series bareudp/pfcp/ppp: Improve netns dismantle. | expand

Message

Kuniyuki Iwashima Feb. 14, 2025, 8:18 a.m. UTC
pfcp and ppp holds RTNL in pernet_operations.exit(), which can be
converted to ->exit_batch_rtnl().  Patch 1 and 2 do the conversion.

bareudp leaves some unregistered devices in a list in dying netns
depending on where the device is cleaned up.  Patch 3 fixes that
inconsistency.


Kuniyuki Iwashima (3):
  pfcp: Convert pfcp_net_exit() to ->exit_batch_rtnl().
  ppp: Split ppp_exit_net() to ->exit_batch_rtnl().
  bareudp: Call bareudp_dellink() in bareudp_destroy_tunnels().

 drivers/net/bareudp.c         |  2 +-
 drivers/net/pfcp.c            | 27 ++++++++++++++++-----------
 drivers/net/ppp/ppp_generic.c | 33 ++++++++++++++++++++++-----------
 3 files changed, 39 insertions(+), 23 deletions(-)