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:59 +0000 (15:29 -0700)
commitee46ebea0b06615f66f8db5f0cacf30a32aecabb
treeb1893fe22c0d199a404bb7758d1a3959b36168de
parent29d532d8b8d6475d370351572a2acd8e0e180edd
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