[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170609145932.GG20756@lunn.ch>
Date: Fri, 9 Jun 2017 16:59:32 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
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
> > 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?
Maybe look at the _once functions, dev_warn_once, printk_once.
> The ideal solution would be a BUILD_BUG_ON(), but I don't see how to make that.
Me neither.
Andrew
Powered by blists - more mailing lists