While working on some new features for OVS and OVN we discovered that self-referential NSIDs get unintentionally allocated in the system as well as unexpectedly reported for local events on all-nsid listeners.
More details in the patches. They change user-visible behavior, but the current behavior is arguably a bug, as it makes it hard to use all-nsid sockets without a decent amount of extra unrelated work of tracking when new NSIDs are allocated for your local namespace. Tests are added to check the expected behavior and YNL is extended to support all-nsid sockets in the tests. Ilya Maximets (5): net: rtnetlink: fix link nsid reported when the link is local selftests: net: add a test case for cross-namespace peer netns net: netlink: don't set nsid on local notifications tools: ynl: support listening on all nsids selftests: net: add a test case for nsid in all nsid notifications net/core/rtnetlink.c | 2 +- net/netlink/af_netlink.c | 8 +- tools/net/ynl/pyynl/lib/ynl.py | 32 +++++-- tools/testing/selftests/net/link_netns.py | 101 +++++++++++++++++++++- 4 files changed, 132 insertions(+), 11 deletions(-) -- 2.53.0

