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>