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: <1394988315.9668.33.camel@edumazet-glaptop2.roam.corp.google.com>
Date:	Sun, 16 Mar 2014 09:45:15 -0700
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Veaceslav Falico <vfalico@...hat.com>
Cc:	netdev@...r.kernel.org, Jay Vosburgh <fubar@...ibm.com>,
	Andy Gospodarek <andy@...yhouse.net>
Subject: Re: [PATCH net-next] bonding: net_ratelimit() pr_warn()s in 802.3ad
 mode

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.

Have you considered using pr_warn_ratelimited() ?

>  			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)




--
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