projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9744ca
)
secchan: Fix inverted logic (down vs. up).
author
Ben Pfaff
<blp@nicira.com>
Thu, 8 Jan 2009 21:37:44 +0000
(13:37 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 8 Jan 2009 21:37:44 +0000
(13:37 -0800)
secchan/port-watcher.c
patch
|
blob
|
history
diff --git
a/secchan/port-watcher.c
b/secchan/port-watcher.c
index 1f6a53d87c513fd295d5df1088c8a1358521ba11..4b2514bcda4e190ea0bed91af4b59a3df205bb78 100644
(file)
--- 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",