Skip to content

ip_tunnel: Support per-netns device unregistration.

Kuniyuki Iwashima netdev 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 1 replyApplied 7/7
  2. v27 patches 2 repliesSuperseded
  3. v17 patches 3 repliesSuperseded

Changes in v3 from the cover letter

* Patch 7
* Check check_net(t->net) in ip_tunnel_ctl().

Patches in v3 All 7 applied

#Subject and filesSizeRepliesApplied
1/7ipmr: Call ->dellink() to remove DVMRP tunnel device.net/ipv4/ipmr.c+9 -30 repliesApplied
2/7ip_tunnel: Set itn->fb_tunnel_dev to NULL in ip_tunnel_delete_net().net/ipv4/ip_tunnel.c+4 -130 repliesApplied
3/7ip_tunnel: Don't pass rtnl_link_ops to ip_tunnel_delete_net().include/net/ip_tunnels.h net/ipv4/ip_gre.c net/ipv4/ip_tunnel.c +2 more+5 -70 repliesApplied
4/7ip_tunnel: Centralise ip_tunnel_del() to ip_tunnel_dellink().net/ipv4/ip_tunnel.c+10 -90 repliesApplied
5/7ip_tunnel: Unify error paths in ip_tunnel_newlink() and ip_tunnel_changelink().net/ipv4/ip_tunnel.c+24 -130 repliesApplied
6/7ip_tunnel: Protect ip_tunnel_net.tunnels[] with mutex.include/net/ip_tunnels.h net/ipv4/ip_tunnel.c+38 -50 repliesApplied
7/7ip_tunnel: Support per-netns device unregistration.net/ipv4/ip_tunnel.c+26 -60 repliesApplied

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIdo Schimmel
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 net-next 0/7] ip_tunnel: Support per-netns device unregistration.

Patch 1 - 3 are prep patches to unlink ip_tunnel device from the hash table in ip_tunnel_dellink() only.

Patch 4 removes ip_tunnel_del() from ip_tunnel_uninit() to ip_tunnel_dellink().

Patch 5 & 6 adds mutex to protect the per-netns hash table.

Patch 7 uses unregister_netdevice_queue_net() to support cross-netns device unregistration.

Changes:
v3:
* Patch 7
* Check check_net(t->net) in ip_tunnel_ctl().

v2: https://lore.kernel.org/netdev/[email protected]/
* Patch 1
* Correct commit message; ip_tunnel_uninit() unlinks
DVMRP device, instead of ->dellink()
* Patch 7
* Check if (!itn->fb_tunnel_dev) in ip_tunnel_ctl().

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (7):
ipmr: Call ->dellink() to remove DVMRP tunnel device.
ip_tunnel: Set itn->fb_tunnel_dev to NULL in ip_tunnel_delete_net().
ip_tunnel: Don't pass rtnl_link_ops to ip_tunnel_delete_net().
ip_tunnel: Centralise ip_tunnel_del() to ip_tunnel_dellink().
ip_tunnel: Unify error paths in ip_tunnel_newlink() and
ip_tunnel_changelink().
ip_tunnel: Protect ip_tunnel_net.tunnels[] with mutex.
ip_tunnel: Support per-netns device unregistration.

 include/net/ip_tunnels.h |   2 +-
 net/ipv4/ip_gre.c        |   6 +-
 net/ipv4/ip_tunnel.c     | 132 +++++++++++++++++++++++++++------------
 net/ipv4/ip_vti.c        |   2 +-
 net/ipv4/ipip.c          |   2 +-
 net/ipv4/ipmr.c          |  12 +++-
 6 files changed, 108 insertions(+), 48 deletions(-)
Signature · 1 line
2.55.0.1007.g17ff1f9808-goog