[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20131118.154838.776189725378131169.davem@davemloft.net>
Date: Mon, 18 Nov 2013 15:48:38 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dcbw@...hat.com
Cc: dingtianhong@...wei.com, fubar@...ibm.com, andy@...yhouse.net,
nikolay@...hat.com, vfalico@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH net RESEND] bonding: don't change to 802.3ad mode while
ARP monitoring is running
From: Dan Williams <dcbw@...hat.com>
Date: Mon, 18 Nov 2013 11:44:42 -0600
> On Sat, 2013-11-16 at 14:30 +0800, Ding Tianhong wrote:
>> Because the ARP monitoring is not support for 802.3ad, but I still
>> could change the mode to 802.3ad from ab mode while ARP monitoring
>> is running, it is incorrect.
>>
>> So add a check for 802.3ad in bonding_store_mode to fix the problem,
>> and make a new macro BOND_NO_USES_ARP() to simplify the code.
>
> Instead of failing, couldn't the code stop ARP monitoring and allow the
> mode change? This is similar to setting miimon, which disables ARP
> monitoring, or setting ARP monitoring, which disables miimon.
>
> if (new_value && bond->params.arp_interval) {
> pr_info("%s: MII monitoring cannot be used with ARP monitoring. Disabling ARP monitoring...\n",
> bond->dev->name);
> bond->params.arp_interval = 0;
> if (bond->params.arp_validate)
> bond->params.arp_validate = BOND_ARP_VALIDATE_NONE;
> }
>
> Bond mode is the most important bond option, so it seems like it should
> override any of the other sub-options. I know the code doesn't do this
> now, but maybe instead of the patch you propose, it would be nicer to
> allow the mode change instead?
I agree with Dan, if other mode changes behave this way (by dropping the
incompatible feature) we should make 802.3ad do so as well at the very
least for consistency.
--
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