ofproto: Consistently use netdev's name instead of ofp_phy_port name.
authorBen Pfaff <blp@nicira.com>
Wed, 20 Apr 2011 20:03:45 +0000 (13:03 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 May 2011 00:13:58 +0000 (17:13 -0700)
commit5767fb1117e54b287def73b82875bc8d847bbdb0
tree65dbaed884e21a04f0bf71717305815d74030332
parent28a14bf3d86efb8f0f29936e84cc9e4e384dffe8
ofproto: Consistently use netdev's name instead of ofp_phy_port name.

There are at least two ways to get an ofport's name: from the netdev using
netdev_get_name() or from the ofp_phy_port's 'name' member.  Some code used
one, some used the other.  This switches all relevant code to use only
netdev_get_name(), because the 'name' member in ofp_phy_port is
fixed-length and thus a long name could be truncated.

This isn't a problem under Linux since the maximum length of a network
device's name under Linux is the same as the field width in ofp_phy_port.
ofproto/ofproto.c