diff options
author | Flavio Leitner <fbl@redhat.com> | 2018-03-29 23:05:29 -0300 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-03-31 12:48:36 -0700 |
commit | cf114a7fce80c14d9f1bc49c995faa973b1b5e21 (patch) | |
tree | e35bf50554714e4ae258737be0eb5f8cf19f0ffb /lib/netdev-linux.c | |
parent | 756819ddd788976f4d17e0da08779fd3317f85fa (diff) | |
download | openvswitch-cf114a7fce80c14d9f1bc49c995faa973b1b5e21.tar.gz |
netlink linux: enable listening to all nsids
Internal ports may be moved to another network namespace
and when that happens, the vswitch stops receiving netlink
notifications.
This patch enables the vswitch to listen to all network
namespaces that have a nsid assigned into the network
namespace where the socket has been opened.
It requires kernel 4.2 or newer.
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r-- | lib/netdev-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 0cc580eb5..2e20fac56 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -655,6 +655,7 @@ netdev_linux_notify_sock(void) } } } + nl_sock_listen_all_nsid(sock, true); ovsthread_once_done(&once); } |