This new revision of the patch series reworked the self nsid handling by: - Dropping the procfs dependency: the local namespace is now identified by pid (NETNSA_PID) instead of opening /proc/self/ns/net and passing NETNSA_FD.
- Stopping monitoring nsid changes at runtime: instead of subscribing to RTNLGRP_NSID and re-querying the self nsid on every RTM_NEWNSID notification, the self-referential nsid is created (or read back if it already exists) once at startup, before the notification socket is set up. As the mapping is permanent, no RTNLGRP_NSID subscription or runtime re-query is needed anymore. - Moving the self nsid into a global in the new lib/netnsid.c and make netnsid_is_local() aware of it, instead of carrying a static cache and a dedicated equality check in netdev-linux.c. Best Regards, Matteo Perin Matteo Perin (4): netdev-linux: Skip vport nsid lookup for user dpif. netdev-linux: Handle self nsid mapping in RTM events. netdev-linux: Generalize ethtool stringset query. netdev-linux: Add peer_ifindex in veth iface status. lib/automake.mk | 1 + lib/netdev-linux-private.h | 1 + lib/netdev-linux.c | 168 +++++++++++++++++++++++++++++++++++-- lib/netnsid.c | 17 ++++ lib/netnsid.h | 12 ++- tests/system-interface.at | 48 +++++++++++ vswitchd/vswitch.xml | 13 +++ 7 files changed, 251 insertions(+), 9 deletions(-) create mode 100644 lib/netnsid.c -- 2.43.0 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
