datapath: Make it possible to query vports by name regardless of datapath.
authorBen Pfaff <blp@nicira.com>
Wed, 29 Dec 2010 23:04:36 +0000 (15:04 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:08:36 +0000 (21:08 -0800)
commit51d4d59822785c1044cd96e6c73427347e0154c2
tree74fb676253032d2fd008a15e818e37a0057b4aae
parentb0ec0f279ea4537cb421eba807254aba8f1971f2
datapath: Make it possible to query vports by name regardless of datapath.

Until now it has only been possible to query a vport if you know what
datapath it is on.  This doesn't really make sense, so this commit removes
that restriction.  It is a little bigger than one might naturally expect
because locking changes are required.

This also allows us to get rid of the ETHTOOL_GDRVINFO kluge that has
bothered me for a long time.  The next commit does that.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
include/openvswitch/datapath-protocol.h
lib/dpif-linux.c