Thread (10 messages) 10 messages, 3 authors, 4d ago

Re: [PATCH net-next 2/3] vxlan: convert configuration to RCU protection

From: Pavan Chebbi <pavan.chebbi@broadcom.com>
Date: 2026-07-09 04:54:56

On Wed, Jul 8, 2026 at 9:57 PM Eric Dumazet [off-list ref] wrote:
In order to allow lockless readers in future patches, dynamically allocate
'struct vxlan_config' and convert 'vxlan->cfg' to an RCU protected pointer.

Updating configuration via vxlan_changelink() or __vxlan_dev_create()
now allocates a new struct vxlan_config, initializes it, and uses
rcu_assign_pointer() to publish it, freeing the previous config with
kfree_rcu().

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 .../mellanox/mlxsw/spectrum_nve_vxlan.c       |  14 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |  57 ++-
 drivers/net/vxlan/vxlan_core.c                | 336 +++++++++++-------
 drivers/net/vxlan/vxlan_mdb.c                 |  29 +-
 drivers/net/vxlan/vxlan_multicast.c           |  12 +-
 drivers/net/vxlan/vxlan_vnifilter.c           |  21 +-
 include/net/vxlan.h                           |   3 +-
 net/openvswitch/vport-vxlan.c                 |  31 +-
 8 files changed, 331 insertions(+), 172 deletions(-)
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help