From: Ben Pfaff Date: Thu, 8 Jan 2009 21:37:44 +0000 (-0800) Subject: secchan: Fix inverted logic (down vs. up). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7ccb82309751ebe6eee1a5a04b85bbea3114c20;p=openvswitch secchan: Fix inverted logic (down vs. up). --- diff --git a/secchan/port-watcher.c b/secchan/port-watcher.c index 1f6a53d8..4b2514bc 100644 --- a/secchan/port-watcher.c +++ b/secchan/port-watcher.c @@ -265,9 +265,9 @@ bring_netdev_up_or_down(const char *name, bool down) retval = netdev_open(name, NETDEV_ETH_TYPE_NONE, &netdev); if (!retval) { if (down) { - retval = netdev_turn_flags_on(netdev, NETDEV_UP, true); - } else { retval = netdev_turn_flags_off(netdev, NETDEV_UP, true); + } else { + retval = netdev_turn_flags_on(netdev, NETDEV_UP, true); } if (retval) { VLOG_WARN_RL(&rl, "failed to bring network device %s %s: %s",