ovs-dpctl: Reimplement get_port_number() using dpif_port_query_by_name().
authorBen Pfaff <blp@nicira.com>
Mon, 27 Dec 2010 20:46:48 +0000 (12:46 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 29 Dec 2010 06:40:34 +0000 (22:40 -0800)
commit0a54c658c635b0f0618072e06164652ad5f13f23
tree12fe7fa9f87de7370bfd623d6da8d56eb9115d25
parentc77d9d13998d76c8cb8b51adcce564093330edc7
ovs-dpctl: Reimplement get_port_number() using dpif_port_query_by_name().

Presumably this function was written to iterate all of the ports because
at some point we didn't have a direct way to do this, but now
dpif_port_query_by_name() is the obvious way to do it.

Acked-by: Jesse Gross <jesse@nicira.com>
utilities/ovs-dpctl.c