]> git.proxmox.com Git - ovs.git/commit
netnsid: update device only if netnsid matches.
authorFlavio Leitner <fbl@redhat.com>
Fri, 30 Mar 2018 02:05:27 +0000 (23:05 -0300)
committerBen Pfaff <blp@ovn.org>
Sat, 31 Mar 2018 19:48:33 +0000 (12:48 -0700)
commitbfda523979d95e88f79d6c08aa52e1c6ffa632ed
treef99027baa63eb70eca2f3860308340905ec0b700
parenta86bd14ec97270fde85a06ce702cdd9ef0d038ca
netnsid: update device only if netnsid matches.

Recent kernels provide the network namespace ID of a port,
so use that to discover where the port currently is.

A network device in another network namespace could have the
same name, so once the socket starts listening to other network
namespaces, it is necessary to confirm the netnsid.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/dpif-netlink.c
lib/dpif-netlink.h
lib/netdev-linux.c