netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/8] rtnetlink: Convert rtnl_newlink() to per-netns RTNL.
@ 2024-11-05  2:05 Kuniyuki Iwashima
  2024-11-05  2:05 ` [PATCH v1 net-next 1/8] rtnetlink: Introduce struct rtnl_nets and helpers Kuniyuki Iwashima
                   ` (7 more replies)
  0 siblings, 8 replies; 28+ messages in thread
From: Kuniyuki Iwashima @ 2024-11-05  2:05 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman
  Cc: Andrew Lunn, Marc Kleine-Budde, Vincent Mailhol, Daniel Borkmann,
	Nikolay Aleksandrov, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

Patch 1 introduces struct rtnl_nets and helper functions to acquire
multiple per-netns RTNL in rtnl_newlink().

Patch 2 - 6 are to prefetch the peer device's netns in rtnl_newlink().

Patch 7 converts rtnl_newlink() to per-netns RTNL.

Patch 8 pushes RTNL down to rtnl_dellink() and rtnl_setlink(), but
the conversion will not be completed unless we support cases with
peer/upper/lower devices.


Kuniyuki Iwashima (8):
  rtnetlink: Introduce struct rtnl_nets and helpers.
  rtnetlink: Factorise rtnl_link_get_net_tb().
  rtnetlink: Add peer_type in struct rtnl_link_ops.
  veth: Set VETH_INFO_PEER to veth_link_ops.peer_type.
  vxcan: Set VXCAN_INFO_PEER to vxcan_link_ops.peer_type.
  netkit: Set IFLA_NETKIT_PEER_INFO to netkit_link_ops.peer_type.
  rtnetlink: Convert RTM_NEWLINK to per-netns RTNL.
  rtnetlink: Register rtnl_dellink() and rtnl_setlink() with
    RTNL_FLAG_DOIT_PERNET_WIP.

 drivers/net/can/vxcan.c |  12 +--
 drivers/net/netkit.c    |  11 +--
 drivers/net/veth.c      |  18 +----
 include/net/rtnetlink.h |  14 ++++
 net/core/rtnetlink.c    | 163 +++++++++++++++++++++++++++++++++++++---
 5 files changed, 175 insertions(+), 43 deletions(-)

-- 
2.39.5 (Apple Git-154)


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2024-11-06  1:22 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-05  2:05 [PATCH v1 net-next 0/8] rtnetlink: Convert rtnl_newlink() to per-netns RTNL Kuniyuki Iwashima
2024-11-05  2:05 ` [PATCH v1 net-next 1/8] rtnetlink: Introduce struct rtnl_nets and helpers Kuniyuki Iwashima
2024-11-05 10:16   ` Eric Dumazet
2024-11-06  0:35   ` Jakub Kicinski
2024-11-06  0:41     ` Kuniyuki Iwashima
2024-11-05  2:05 ` [PATCH v1 net-next 2/8] rtnetlink: Factorise rtnl_link_get_net_tb() Kuniyuki Iwashima
2024-11-05 10:18   ` Eric Dumazet
2024-11-06  0:37   ` Jakub Kicinski
2024-11-06  0:44     ` Kuniyuki Iwashima
2024-11-05  2:05 ` [PATCH v1 net-next 3/8] rtnetlink: Add peer_type in struct rtnl_link_ops Kuniyuki Iwashima
2024-11-05 10:23   ` Eric Dumazet
2024-11-06  0:39   ` Jakub Kicinski
2024-11-06  0:39     ` Jakub Kicinski
2024-11-06  0:52       ` Kuniyuki Iwashima
2024-11-06  0:58         ` Kuniyuki Iwashima
2024-11-06  1:04           ` Jakub Kicinski
2024-11-06  1:22             ` Kuniyuki Iwashima
2024-11-05  2:05 ` [PATCH v1 net-next 4/8] veth: Set VETH_INFO_PEER to veth_link_ops.peer_type Kuniyuki Iwashima
2024-11-05 10:24   ` Eric Dumazet
2024-11-05  2:05 ` [PATCH v1 net-next 5/8] vxcan: Set VXCAN_INFO_PEER to vxcan_link_ops.peer_type Kuniyuki Iwashima
2024-11-05 10:37   ` Eric Dumazet
2024-11-05  2:05 ` [PATCH v1 net-next 6/8] netkit: Set IFLA_NETKIT_PEER_INFO to netkit_link_ops.peer_type Kuniyuki Iwashima
2024-11-05 10:39   ` Eric Dumazet
2024-11-05  2:05 ` [PATCH v1 net-next 7/8] rtnetlink: Convert RTM_NEWLINK to per-netns RTNL Kuniyuki Iwashima
2024-11-05 10:40   ` Eric Dumazet
2024-11-05 16:22   ` Paolo Abeni
2024-11-05 17:11     ` Kuniyuki Iwashima
2024-11-05  2:05 ` [PATCH v1 net-next 8/8] rtnetlink: Register rtnl_dellink() and rtnl_setlink() with RTNL_FLAG_DOIT_PERNET_WIP Kuniyuki Iwashima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).