summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2005-11-09 19:35:35 +0100
committerJohn W. Linville <linville@tuxdriver.com>2005-11-13 20:48:19 +0100
commitb76850ab577bb4b929e60894d2025bbfcc043984 (patch)
tree0d1c22d205d026cf96da0fa6b014a0c3f915358c /drivers/net/bonding
parent[PATCH] bonding: move kmalloc out of spinlock in ALB init (diff)
downloadlinux-b76850ab577bb4b929e60894d2025bbfcc043984.tar.xz
linux-b76850ab577bb4b929e60894d2025bbfcc043984.zip
[PATCH] bonding: explicitly clear RLB flag during ALB init
Explicitly clear RLB flag during ALB init. This is needed for sysfs support, since the bond mode can be changed at runtime via sysfs. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Acked-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r--drivers/net/bonding/bond_alb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
index e8d10f3cb1b5..24f4a3d14991 100644
--- a/drivers/net/bonding/bond_alb.c
+++ b/drivers/net/bonding/bond_alb.c
@@ -1256,6 +1256,8 @@ int bond_alb_initialize(struct bonding *bond, int rlb_enabled)
tlb_deinitialize(bond);
return res;
}
+ } else {
+ bond->alb_info.rlb_enabled = 0;
}
return 0;