]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: make __get_active_agg() use bond_for_each_slave()
authorVeaceslav Falico <vfalico@redhat.com>
Fri, 27 Sep 2013 14:12:00 +0000 (16:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Sep 2013 22:28:02 +0000 (15:28 -0700)
commit9439e18084b7d0b589ab720f234874756f076784
treec32c824189cc1efa4a90ee771d65f0043f05b303
parent4623cc81af07993ada9c5b1a3de4d67a4872abcf
bonding: make __get_active_agg() use bond_for_each_slave()

Currently we're relying on suboptimal construct

for (; aggregator; aggregator = __get_next_agg(aggregator)) {

where aggregator is an argument of __get_active_agg() which is _always_ the
first slave's aggregator - judging by all the callers, comments in the
ad_agg_selection_logic() and by logic.

Convert it to use the standard bond_for_each_slave().

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c