mbox series

[ovs-dev,v5,0/4] netdev-linux: Add peer_ifindex in interface status for veth.

Message ID 20260318110442.102318-1-matteo.perin@canonical.com
Headers show
Series netdev-linux: Add peer_ifindex in interface status for veth. | expand

Message

Matteo Perin March 18, 2026, 11:04 a.m. UTC
This new revision of the patch series reworks the NETLINK_LISTEN_ALL_NSID workaround
by using an (eventual) autoreferential nsid as NETNSID_LOCAL for non-system devices.

The discovery process is triggered on RTM_NEWNSID arrival and the resulting local
netnsid, if found, is cached thereafter.

This will allow the correct parsing of local RTM events netnsid value even when using
NETLINK_LISTEN_ALL_NSID when a self nsid is present in the local netns.

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/netdev-linux-private.h |   1 +
 lib/netdev-linux.c         | 226 +++++++++++++++++++++++++++++++++----
 tests/system-interface.at  |  48 ++++++++
 vswitchd/vswitch.xml       |  13 +++
 4 files changed, 268 insertions(+), 20 deletions(-)