[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fcca67e0-a170-6dd7-dcbb-7a0ecc0453d5@6wind.com>
Date: Fri, 9 Jun 2017 16:39:06 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: davem@...emloft.net, netdev@...r.kernel.org, j.vosburgh@...il.com,
vfalico@...il.com, andy@...yhouse.net, thibaut.collet@...nd.com,
linville@...driver.com
Subject: Re: [PATCH net-next] bonding: warn user when 802.3ad speed is unknown
Le 09/06/2017 à 16:23, Andrew Lunn a écrit :
> On Fri, Jun 09, 2017 at 03:34:43PM +0200, Nicolas Dichtel wrote:
>> Make it explicit in the log.
>>
>> Suggested-by: Andrew Lunn <andrew@...n.ch>
>> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
>
> Hi Nicolas
Hi Andrew,
>
> How often is this called? It seems like it is used by
Good question! ;-)
> ad_port_selection_logic, which has the comment:
>
> is called in the inititalization (after all the handshkes),
> and after every lacpdu receive (if selected is off)
>
> I just wonder if this should be rate limited?
So using net_warn_ratelimited()?
Displaying this message continuously in the log, even at a low rate, seems not
the best things to do. The first time seems enough, but it would require more
code for that. Is it not over-engineering?
The ideal solution would be a BUILD_BUG_ON(), but I don't see how to make that.
Regards,
Nicolas
Powered by blists - more mailing lists