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:27:15 +0000 (15:27 -0700)
commit3efb60637b9a6741e7e5b7f04e4daa4d2464d8b3
tree8bcfb0495b7500e9908e99541b94974e8214bbfd
parentc0a71f4e62617a9dbdd19089e22ec29b594f3860
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