dpif-netdev: Don't run port names through netdev_vport_get_dpif_port().
authorBen Pfaff <blp@nicira.com>
Thu, 6 Jun 2013 22:27:15 +0000 (15:27 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 6 Jun 2013 22:29:56 +0000 (15:29 -0700)
commit142f0955bf4d51237304aca9628e39d229850d98
treefb2c3d7dd961b8db8656132e1c238e2a7fc7a624
parent7d3ad71e72eeffb9216fe1bfdaa504eb0e2e66e9
dpif-netdev: Don't run port names through netdev_vport_get_dpif_port().

The ports that exist within a dpif have already been translated through
netdev_vport_get_dpif_port(), so there is no value to translating them
again in the interfaces that query or dump ports (and possibly a drawback
if somehow the translation could change).

After this change, dpif-netdev translates port names in just one place,
the port_add path, which makes dpif-netdev act the same way as dpif-linux
in this respect.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/dpif-netdev.c