linux-stable/drivers/net/bonding
Veaceslav Falico 19177e7d55 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>
2013-09-28 15:28:02 -07:00
..
bond_3ad.c bonding: make __get_active_agg() use bond_for_each_slave() 2013-09-28 15:28:02 -07:00
bond_3ad.h bonding: fix multiple 3ad mode sysfs race conditions 2013-05-19 23:25:49 -07:00
bond_alb.c bonding: add bond_has_slaves() and use it 2013-09-26 16:02:06 -04:00
bond_alb.h bonding: rework rlb_next_rx_slave() to use bond_for_each_slave() 2013-09-26 16:02:05 -04:00
bond_debugfs.c bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_main.c bonding: correctly verify for the first slave in bond_enslave 2013-09-28 15:27:32 -07:00
bond_procfs.c bonding: make bond_for_each_slave() use lower neighbour's private 2013-09-26 16:02:05 -04:00
bond_sysfs.c net: create sysfs symlinks for neighbour devices 2013-09-26 16:02:08 -04:00
bonding.h net: create sysfs symlinks for neighbour devices 2013-09-26 16:02:08 -04:00
Makefile bonding, ipv4, ipv6, vlan: Handle NETDEV_BONDING_FAILOVER like NETDEV_NOTIFY_PEERS 2011-04-17 23:36:03 -07:00