[ovs-git] [openvswitch/ovs] a86bd1: netlink: provide network namespace id from a msg.
GitHub
noreply at github.com
Sat Mar 31 20:15:18 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: a86bd14ec97270fde85a06ce702cdd9ef0d038ca
https://github.com/openvswitch/ovs/commit/a86bd14ec97270fde85a06ce702cdd9ef0d038ca
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M configure.ac
M lib/automake.mk
M lib/dpif-netlink.c
M lib/netdev-linux.c
M lib/netlink-notifier.c
M lib/netlink-socket.c
M lib/netlink-socket.h
A lib/netnsid.h
M utilities/nlmon.c
Log Message:
-----------
netlink: provide network namespace id from a msg.
The netlink notification's ancillary data contains the network
namespace id (netnsid) needed to identify the device correctly.
Signed-off-by: Flavio Leitner <fbl at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Commit: bfda523979d95e88f79d6c08aa52e1c6ffa632ed
https://github.com/openvswitch/ovs/commit/bfda523979d95e88f79d6c08aa52e1c6ffa632ed
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M lib/dpif-netlink.c
M lib/dpif-netlink.h
M lib/netdev-linux.c
Log Message:
-----------
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 at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Commit: 756819ddd788976f4d17e0da08779fd3317f85fa
https://github.com/openvswitch/ovs/commit/756819ddd788976f4d17e0da08779fd3317f85fa
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M lib/netdev-linux.c
Log Message:
-----------
netdev-linux: use netlink to update netdev.
The ioctl interface doesn't support network namespaces, so
try updating the netdev using netlink message instead.
To provide backwards compatibility, fall back to the previous
method if netlink isn't supported or fails.
Signed-off-by: Flavio Leitner <fbl at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Commit: cf114a7fce80c14d9f1bc49c995faa973b1b5e21
https://github.com/openvswitch/ovs/commit/cf114a7fce80c14d9f1bc49c995faa973b1b5e21
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M lib/daemon-unix.c
M lib/daemon.man
M lib/daemon.xml
M lib/netdev-linux.c
M lib/netlink-protocol.h
M lib/netlink-socket.c
M lib/netlink-socket.h
M tests/ofproto-macros.at
M tests/ovn-controller-vtep.at
Log Message:
-----------
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 at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Commit: 6abfc34d96683066e9f4f590754de8a211819b9e
https://github.com/openvswitch/ovs/commit/6abfc34d96683066e9f4f590754de8a211819b9e
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M utilities/nlmon.c
Log Message:
-----------
nlmon: added netns support.
Signed-off-by: Flavio Leitner <fbl at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Commit: e0e2410d521329f0242ed5e1fef821e8898a0860
https://github.com/openvswitch/ovs/commit/e0e2410d521329f0242ed5e1fef821e8898a0860
Author: Flavio Leitner <fbl at redhat.com>
Date: 2018-03-31 (Sat, 31 Mar 2018)
Changed paths:
M lib/dpif-netlink.c
M lib/netdev-linux.c
M tests/ofproto-macros.at
Log Message:
-----------
netdev-linux: fail ops not supporting remote netns.
When the netdev is in another namespace and the operation doesn't
support network namespaces, return the correct error.
Signed-off-by: Flavio Leitner <fbl at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Compare: https://github.com/openvswitch/ovs/compare/e8663e53e6e2...e0e2410d5213
More information about the git
mailing list