diff options
author | Justin Pettit <jpettit@nicira.com> | 2012-11-15 13:55:06 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2012-11-16 12:35:55 -0800 |
commit | bef071a5fdf8e2dd87677b04b3cf7a8f5094edcb (patch) | |
tree | 3b09de4dc5899f9eec0ce35629d50e28d07809b9 /vswitchd | |
parent | 05ba03e000011fdfb6080b34d9f599e324db2987 (diff) |
bridge: Always "up" internal devices.
The kernel datapath automatically "up"s internal devices, but this
wasn't happening for the userspace datapath. This change has the bridge
module always "up" them.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Diffstat (limited to 'vswitchd')
-rw-r--r-- | vswitchd/bridge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index aebb2c36..316ecc75 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1349,7 +1349,8 @@ iface_do_create(const struct bridge *br, br->name, iface_cfg->name, *ofp_portp); } - if (port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) { + if ((port_cfg->vlan_mode && !strcmp(port_cfg->vlan_mode, "splinter")) + || iface_is_internal(iface_cfg, br->cfg)) { netdev_turn_flags_on(netdev, NETDEV_UP, true); } |