projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdcf42c
)
bond: bond_stb_enable_slave() never triggered.
author
Ethan Jackson
<ethan@nicira.com>
Tue, 19 Apr 2011 21:11:23 +0000
(14:11 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Tue, 19 Apr 2011 23:22:52 +0000
(16:22 -0700)
bond_stb_enable_slave() depended on bond->stb_slaves being
nonnull. However, bond_stb_enable_slave() is responsible for
initializing this parameter. Thus none of it's logic ever ran.
lib/bond.c
patch
|
blob
|
history
diff --git
a/lib/bond.c
b/lib/bond.c
index d3b0e30a49e18bb838384f0ade994b0b48efcdee..5306bf44ee5aed8976a39b8137d02e607c1da9ad 100644
(file)
--- a/
lib/bond.c
+++ b/
lib/bond.c
@@
-1321,7
+1321,7
@@
bond_stb_enable_slave(struct bond_slave *slave)
{
struct bond *bond = slave->bond;
- if (
!bond->stb_slaves
) {
+ if (
bond->balance != BM_STABLE
) {
return;
}