datapath: Honor dp_ifindex, when specified, for vport lookup by name.
authorBen Pfaff <blp@nicira.com>
Wed, 7 Mar 2012 22:11:09 +0000 (14:11 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 7 Mar 2012 22:13:15 +0000 (14:13 -0800)
commit7b58d76df5d7798ae28fce292de83ff1f3cdf8a7
tree626c6b9a689705344e3e1a515854c7b40f4305db
parent05bfbcb693680794c5a0398587a7da6b46b3e3f5
datapath: 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.

Bug #9889.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c