netdev
[Top] [All Lists]

[PATCH 2.6.13-rc1 5/17] bonding: reset RLB flag during ALB init

To: fubar@xxxxxxxxxx, bonding-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [PATCH 2.6.13-rc1 5/17] bonding: reset RLB flag during ALB init
From: Radheka Godse <radheka.godse@xxxxxxxxx>
Date: Fri, 1 Jul 2005 13:43:21 -0700 (PDT)
Cc: netdev@xxxxxxxxxxx
Replyto: "Radheka Godse" <radheka.godse@intel.com>
Sender: netdev-bounce@xxxxxxxxxxx
This patch makes the ALB init function explicitly clear the RLB flag if
RLB is not used. This is required by the sysfs interfaces, which allows
the user to change mode without destroying the bond.

Signed-off-by: Radheka Godse <radheka.godse@xxxxxxxxx>
Signed-off-by: Mitch Williams <mitch.a.williams@xxxxxxxxx>

diff -urN -X dontdiff linux-2.6.12post/drivers/net/bonding/bond_alb.c 
linux-2.6.12post-sysfs/drivers/net/bonding/bond_alb.c
--- linux-2.6.12post/drivers/net/bonding/bond_alb.c     2005-06-17 
12:48:29.000000000 -0700
+++ linux-2.6.12post-sysfs/drivers/net/bonding/bond_alb.c       2005-06-28 
18:21:35.000000000 -0700
@@ -1256,6 +1256,8 @@
                        tlb_deinitialize(bond);
                        return res;
                }
+       } else {
+               bond->alb_info.rlb_enabled = 0;
        }

        return 0;

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6.13-rc1 5/17] bonding: reset RLB flag during ALB init, Radheka Godse <=