mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] vxlan: vnifilter: fix VNI add/update notifications
@ 2026-05-18 16:56 Andy Roulin
  2026-05-18 16:56 ` [PATCH net-next 1/3] vxlan: vnifilter: send notification on VNI add Andy Roulin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Roulin @ 2026-05-18 16:56 UTC (permalink / raw)
  To: netdev
  Cc: David S . Miller, Jakub Kicinski, Eric Dumazet, Paolo Abeni,
	Andrew Lunn, Roopa Prabhu, Petr Machata, Ido Schimmel,
	Chirag Shah, Shuah Khan, linux-kselftest, linux-kernel

When a vxlan device has vnifilter enabled, userspace observers
(e.g., bridge monitor vni) miss VNI add events and see spurious
notifications on no-op VNI re-adds.

Patch 1 fixes the missing notification on VNI add: vxlan_vni_add()
guarded the notification on a 'changed' flag that vxlan_vni_update_group()
only sets when a multicast group or remote is supplied, so VNIs added
without a group (e.g., L3 VXLAN) were silently created.

Patch 2 fixes the spurious notification on VNI update: vxlan_vni_update()
tested 'if (changed)' against a bool pointer instead of dereferencing it,
so every re-add produced a notification regardless of whether anything
actually changed.

Patch 3 adds a selftest covering both bugs along with a few related
cases (add with remote, remote update, delete-nonexistent).

Andy Roulin (3):
  vxlan: vnifilter: send notification on VNI add
  vxlan: vnifilter: fix spurious notification on VNI update
  selftests: net: add vxlan vnifilter notification test

 drivers/net/vxlan/vxlan_vnifilter.c           |   5 +-
 tools/testing/selftests/net/Makefile          |   1 +
 .../net/test_vxlan_vnifilter_notify.sh        | 175 ++++++++++++++++++
 3 files changed, 178 insertions(+), 3 deletions(-)
 create mode 100755 tools/testing/selftests/net/test_vxlan_vnifilter_notify.sh

-- 
2.43.0


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

end of thread, other threads:[~2026-05-20 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-18 16:56 [PATCH net-next 0/3] vxlan: vnifilter: fix VNI add/update notifications Andy Roulin
2026-05-18 16:56 ` [PATCH net-next 1/3] vxlan: vnifilter: send notification on VNI add Andy Roulin
2026-05-18 16:56 ` [PATCH net-next 2/3] vxlan: vnifilter: fix spurious notification on VNI update Andy Roulin
2026-05-18 16:57 ` [PATCH net-next 3/3] selftests: net: add vxlan vnifilter notification test Andy Roulin
2026-05-20 17:25 ` [PATCH net-next 0/3] vxlan: vnifilter: fix VNI add/update notifications Andy Roulin

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

all inboxes | Powered by JetHome®