Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] vxlan: RCU protect vxlan_config and enable RTNL-less fill_info
@ 2026-07-08 16:04 Eric Dumazet
  2026-07-08 16:04 ` [PATCH net-next 1/3] vxlan: pass vxlan_config pointer to helper functions Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Eric Dumazet @ 2026-07-08 16:04 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Kuniyuki Iwashima, Ido Schimmel, Andrew Lunn,
	netdev, eric.dumazet, Eric Dumazet

This patch series converts VXLAN configuration (`struct vxlan_config`)
to be RCU-protected, allowing lockless readers and enabling RTNL-less
`vxlan_fill_info()` netlink link info dumping.

Work has been split into three distinct parts:

1. Refactor helper functions in RX, TX, MDB, VNIFILTER, and OVS paths to
   accept a `const struct vxlan_config *cfg` pointer (or pass specific
   fields such as `flags`/`saddr_family`) rather than accessing
   `vxlan->cfg` directly.

2. Convert `vxlan->cfg` from an embedded struct into an RCU-protected
   pointer (`struct vxlan_config __rcu *cfg`), dynamically allocated on
   device creation or changelink, and freed via `kfree_rcu()`. Update
   offload drivers (`mlxsw`) and OVS (`vport-vxlan.c`) accordingly.

3. Update `vxlan_fill_info()` to run under `rcu_read_lock()` instead of
   relying on RTNL lock, completing the transition to lockless link info
   dumping for VXLAN devices.

Eric Dumazet (3):
  vxlan: pass vxlan_config pointer to helper functions
  vxlan: convert configuration to RCU protection
  vxlan: no longer rely on RTNL in vxlan_fill_info()

 .../mellanox/mlxsw/spectrum_nve_vxlan.c       |  14 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |  57 +-
 drivers/net/vxlan/vxlan_core.c                | 566 +++++++++++-------
 drivers/net/vxlan/vxlan_mdb.c                 |  37 +-
 drivers/net/vxlan/vxlan_multicast.c           |  12 +-
 drivers/net/vxlan/vxlan_private.h             |   6 +-
 drivers/net/vxlan/vxlan_vnifilter.c           |  24 +-
 include/net/vxlan.h                           |   3 +-
 net/openvswitch/vport-vxlan.c                 |  34 +-
 9 files changed, 475 insertions(+), 278 deletions(-)

-- 
2.55.0.795.g602f6c329a-goog


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

end of thread, other threads:[~2026-07-10 15:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08 16:04 [PATCH net-next 0/3] vxlan: RCU protect vxlan_config and enable RTNL-less fill_info Eric Dumazet
2026-07-08 16:04 ` [PATCH net-next 1/3] vxlan: pass vxlan_config pointer to helper functions Eric Dumazet
2026-07-09  4:53   ` Pavan Chebbi
2026-07-08 16:04 ` [PATCH net-next 2/3] vxlan: convert configuration to RCU protection Eric Dumazet
2026-07-09  4:54   ` Pavan Chebbi
2026-07-08 16:04 ` [PATCH net-next 3/3] vxlan: no longer rely on RTNL in vxlan_fill_info() Eric Dumazet
2026-07-09  4:55   ` Pavan Chebbi
2026-07-10 14:20 ` [PATCH net-next 0/3] vxlan: RCU protect vxlan_config and enable RTNL-less fill_info Paolo Abeni
2026-07-10 14:22   ` Paolo Abeni
2026-07-10 15:03     ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox