From: Veaceslav Falico <vfalico@redhat.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev@vger.kernel.org, Jay Vosburgh <fubar@us.ibm.com>,
Andy Gospodarek <andy@greyhouse.net>
Subject: Re: [PATCH net-next] bonding: net_ratelimit() pr_warn()s in 802.3ad mode
Date: Sun, 16 Mar 2014 17:50:34 +0100 [thread overview]
Message-ID: <20140316165034.GC30498@redhat.com> (raw)
In-Reply-To: <1394988315.9668.33.camel@edumazet-glaptop2.roam.corp.google.com>
On Sun, Mar 16, 2014 at 09:45:15AM -0700, Eric Dumazet wrote:
>On Sun, 2014-03-16 at 17:29 +0100, Veaceslav Falico wrote:
>
>> @@ -1559,7 +1560,7 @@ static void ad_agg_selection_logic(struct aggregator *agg)
>> }
>>
>> /* check if any partner replys */
>> - if (best->is_individual) {
>> + if (best->is_individual && net_ratelimit()) {
>
>This looks odd, to mix conditions that are not of the same domain.
It indeed looks odd and kinda hard to read.
>
>Have you considered using pr_warn_ratelimited() ?
Nice, didn't know (or forgot...) about that function.
Thanks, will use it and re-send.
>
>> pr_warn("%s: Warning: No 802.3ad response from the link partner for any adapters in the bond\n",
>> best->slave ?
>> best->slave->bond->dev->name : "NULL");
>> @@ -2080,7 +2081,7 @@ void bond_3ad_state_machine_handler(struct work_struct *work)
>
>
>
>
next prev parent reply other threads:[~2014-03-16 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-16 16:29 [PATCH net-next] bonding: net_ratelimit() pr_warn()s in 802.3ad mode Veaceslav Falico
2014-03-16 16:45 ` Eric Dumazet
2014-03-16 16:50 ` Veaceslav Falico [this message]
2014-03-16 16:59 ` Joe Perches
2014-03-16 17:02 ` Veaceslav Falico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140316165034.GC30498@redhat.com \
--to=vfalico@redhat.com \
--cc=andy@greyhouse.net \
--cc=eric.dumazet@gmail.com \
--cc=fubar@us.ibm.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.