]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Honor dp_ifindex, when specified, for vport lookup by name.
authorBen Pfaff <blp@nicira.com>
Tue, 6 Mar 2012 23:04:04 +0000 (15:04 -0800)
committerJesse Gross <jesse@nicira.com>
Tue, 6 Mar 2012 23:04:04 +0000 (15:04 -0800)
commitd30acc4356a38176532eb24cff6f71dff50a7b0e
tree1584b5b2c3180745483bd6587bb435178cf0651d
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
openvswitch: Honor dp_ifindex, when specified, for vport lookup by name.

When OVS_VPORT_ATTR_NAME is specified and dp_ifindex is nonzero, the
logical behavior would be for the vport name lookup scope to be limited
to the specified datapath, but in fact the dp_ifindex value was ignored.
This commit causes the search scope to be honored.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c