Skip to content

Allow openvswitch to query ports in another netns.

Flavio Leitner netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: export peernet2id_allocnet/core/net_namespace.c+1 -00 replies
2/3openvswitch: reliable interface indentification in port dumpsinclude/uapi/linux/openvswitch.h net/openvswitch/datapath.c net/openvswitch/datapath.h +1 more+40 -170 replies
3/3rtnetlink: use netnsid to query interfaceinclude/uapi/linux/if_link.h net/core/rtnetlink.c+86 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] Allow openvswitch to query ports in another netns.

Today Open vSwitch users are moving internal ports to other namespaces and although packets are flowing OK, the userspace daemon can't find out basic information like if the port is UP or DOWN, for instance.

This patchset extends openvswitch API to retrieve the current netnsid of a port. It will be used by the userspace daemon to find out in which netns the port is located.

This patchset also extends the rtnetlink getlink call to accept and operate on a given netnsid. More details are available in each patch.

Jiri Benc (3):
net: export peernet2id_alloc
openvswitch: reliable interface indentification in port dumps
rtnetlink: use netnsid to query interface

 include/uapi/linux/if_link.h     |   1 +
 include/uapi/linux/openvswitch.h |   2 +
 net/core/net_namespace.c         |   1 +
 net/core/rtnetlink.c             | 103 ++++++++++++++++++++++++++++++++-------
 net/openvswitch/datapath.c       |  47 +++++++++++++-----
 net/openvswitch/datapath.h       |   4 +-
 net/openvswitch/dp_notify.c      |   4 +-
 7 files changed, 127 insertions(+), 35 deletions(-)
Signature · 1 line
2.13.6