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>
Wed, 10 Aug 2011 16:28:43 +0000 (09:28 -0700)
commit7283dda1fd672b1f8326df9bb6f54062cbf02116
tree7d66b0f5d0090991ef21206ce3ddcf0cd9de3108
parent7ec92934fadd266c81cfa865c5699e84481fd910
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