On Tue, Jan 30, 2018 at 3:40 PM, Greg Rose <[email protected]> wrote: > From: Jiri Benc <[email protected]> > > Upstream commit: > commit 9354d452034273a50a4fd703bea31e5d6b1fc20b > Author: Jiri Benc <[email protected]> > Date: Thu Nov 2 17:04:37 2017 -0200 > > openvswitch: reliable interface indentification in port dumps > > This patch allows reliable identification of netdevice interfaces > connected > to openvswitch bridges. In particular, user space queries the netdev > interfaces belonging to the ports for statistics, up/down state, etc. > Datapath dump needs to provide enough information for the user space to be > able to do that. > > Currently, only interface names are returned. This is not sufficient, as > openvswitch allows its ports to be in different name spaces and the > interface name is valid only in its name space. What is needed and > generally > used in other netlink APIs, is the pair ifindex+netnsid. > > The solution is addition of the ifindex+netnsid pair (or only ifindex if > in > the same name space) to vport get/dump operation. > > On request side, ideally the ifindex+netnsid pair could be used to > get/set/del the corresponding vport. This is not implemented by this patch > and can be added later if needed. > > Signed-off-by: Jiri Benc <[email protected]> > Signed-off-by: David S. Miller <[email protected]> > > Added compat fixup for peernet2id. > > Cc: Jiri Benc <[email protected]> > Signed-off-by: Greg Rose <[email protected]>
This patch looks good, But I think we can target it for master only, since the userspace component is not in yet. _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
