bridge: Add port to datapath before trying to retrieve device stats.
authorBen Pfaff <blp@nicira.com>
Fri, 5 Aug 2011 21:14:18 +0000 (14:14 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Aug 2011 17:24:24 +0000 (10:24 -0700)
commit8cea3c07718d55c6eea288be87b3ea9e4d3b88cd
tree092c0a23ecfd9a132ecf3e4e0f6ecf334bdba283
parent454ec971d79a921e2e97516ddb9c725d0cfa607d
bridge: Add port to datapath before trying to retrieve device stats.

Virtual ports such as GRE tunnels don't exist until after the port is
added to the datapath, so without this change adding such a port yields
a warning like the following:

netdev|WARN|failed to retrieve MTU for network device gre0: No such device
vswitchd/bridge.c