lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF2d9ji1hgx8pzaLL1-OtY4c2YMN1U0-ePAHAYbXtUK7TAJJMA@mail.gmail.com>
Date:	Mon, 31 Mar 2014 14:52:31 -0700
From:	Mahesh Bandewar <maheshb@...gle.com>
To:	Veaceslav Falico <vfalico@...hat.com>
Cc:	Jay Vosburgh <fubar@...ibm.com>,
	Andy Gospodarek <andy@...yhouse.net>,
	David Miller <davem@...emloft.net>,
	netdev <netdev@...r.kernel.org>,
	Eric Dumazet <edumazet@...gle.com>,
	Maciej Zenczykowski <maze@...gle.com>
Subject: Re: [PATCH 5/5] bonding: Add tlb_dynamic_lb module parameter

On Mon, Mar 31, 2014 at 9:35 AM, Veaceslav Falico <vfalico@...hat.com> wrote:
> On Fri, Mar 28, 2014 at 10:29:09PM -0700, Mahesh Bandewar wrote:
> ...snip...
>
>> @@ -3046,7 +3050,7 @@ static void bond_work_init_all(struct bonding *bond)
>> {
>>         INIT_DELAYED_WORK(&bond->mcast_work,
>>                           bond_resend_igmp_join_requests_delayed);
>> -       if (bond_is_lb(bond))
>> +       if (bond_is_lb(bond) && bond->params.tlb_dynamic_lb)
>>                 INIT_DELAYED_WORK(&bond->alb_work, bond_alb_monitor);
>>         INIT_DELAYED_WORK(&bond->mii_work, bond_mii_monitor);
>>         if (bond->params.mode == BOND_MODE_ACTIVEBACKUP)
>> @@ -3060,7 +3064,7 @@ static void bond_work_cancel_all(struct bonding
>> *bond)
>> {
>>         cancel_delayed_work_sync(&bond->mii_work);
>>         cancel_delayed_work_sync(&bond->arp_work);
>> -       if (bond_is_lb(bond))
>> +       if (bond_is_lb(bond) && bond->params.tlb_dynamic_lb)
>>                 cancel_delayed_work_sync(&bond->alb_work);
>>         cancel_delayed_work_sync(&bond->ad_work);
>>         cancel_delayed_work_sync(&bond->mcast_work);
>> @@ -3098,7 +3102,8 @@ static int bond_open(struct net_device *bond_dev)
>>                  */
>>                 if (bond_alb_initialize(bond, (bond->params.mode ==
>> BOND_MODE_ALB)))
>>                         return -ENOMEM;
>> -               queue_delayed_work(bond->wq, &bond->alb_work, 0);
>> +               if (bond->params.tlb_dynamic_lb)
>> +                       queue_delayed_work(bond->wq, &bond->alb_work, 0);
>
>
> So what happens if tlb_dynamic_lb is changed on the flight, via sysfs?
> Seems like the delayed_work is handled only on bond_setup/open, and
> changing the tlb_dynamic_lb via sysfs won't re-enable it.

You can change the value of tlb_dynamic_lb only when the bond-device
is down not otherwise.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ