Today Open vSwitch doesn't know about network namespaces (netns), but
users are moving internal ports to other namespaces.  Although packets
are still flowing, the daemon fails to find out basic port information,
like if it is UP or DOWN, for instance.

This patchset rely on a new kernel vport API recently accepted to find
out the new network namespace ID of a bridge's port. This information
along with the port's name recorded in the database is used to match the
corresponding netlink messages.

This patchset also leverages another kernel API that allows the daemon
to listen to all netlink messages from all netns which has an ID assigned
into it.  This and the previous change allows the userspace to track ports
in other network namespaces.

If any of the APIs aren't available, it falls back to the older APIs to
not break backwards compatibility.


ChangeLog:

* V4:
  - Fixed testsuite to run without openvswitch module loaded. (Ben)

* V3:
  - Fixed long line (Greg)
  - Rewrote assuming that the kernel will not send negative
    numbers as valid network namespace id. (Ben, Flavio, Jiri)

* V2:
  - report and close unexpected file descriptors (Ben)


*** BLURB HERE ***

Flavio Leitner (6):
  netlink: provide network namespace id from a msg.
  netnsid: update device only if netnsid matches.
  netdev-linux: use netlink to update netdev.
  netlink linux: enable listening to all nsids
  nlmon: added netns support.
  netdev-linux: fail ops not supporting remote netns.

 configure.ac                 |   3 +-
 lib/automake.mk              |   1 +
 lib/daemon-unix.c            |   3 +-
 lib/daemon.man               |   6 +-
 lib/daemon.xml               |   8 +-
 lib/dpif-netlink.c           |  16 ++-
 lib/dpif-netlink.h           |   1 +
 lib/netdev-linux.c           | 313 +++++++++++++++++++++++++++++++++++++++----
 lib/netlink-notifier.c       |   2 +-
 lib/netlink-protocol.h       |   6 +
 lib/netlink-socket.c         |  80 ++++++++++-
 lib/netlink-socket.h         |   4 +-
 lib/netnsid.h                | 139 +++++++++++++++++++
 tests/ofproto-macros.at      |   2 +
 tests/ovn-controller-vtep.at |   1 +
 utilities/nlmon.c            |  10 +-
 16 files changed, 550 insertions(+), 45 deletions(-)
 create mode 100644 lib/netnsid.h

-- 
2.14.3

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to