linux/drivers/net
Veaceslav Falico 77140d2951 bonding: rework bond_find_best_slave() to use bond_for_each_slave()
bond_find_best_slave() does not have to be balanced - i.e. return the slave
that is *after* some other slave, but rather return the best slave that
suits, except of bond->primary_slave - in which case we just return it if
it's suitable.

After that we just look through all the slaves and return either first up
slave or the slave whose link came back earliest.

We also don't care about curr_active_slave lock cause we use it in
bond_should_change_active() only and there we take it right away - i.e. it
won't go away.

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-26 16:02:05 -04:00
..
appletalk
arcnet
bonding bonding: rework bond_find_best_slave() to use bond_for_each_slave() 2013-09-26 16:02:05 -04:00
caif caif: add a sanity check to the tty name 2013-09-04 00:27:27 -04:00
can can: Remove extern from function prototypes 2013-09-24 10:09:18 -04:00
cris
dsa
ethernet bonding: make bond_for_each_slave() use lower neighbour's private 2013-09-26 16:02:05 -04:00
fddi fddi/skfp: Remove extern from function prototypes 2013-09-24 12:54:15 -07:00
hamradio
hippi
hyperv Drivers: hv: remove HV_DRV_VERSION 2013-08-02 11:34:30 +08:00
ieee802154
irda irda: Remove extern from function prototypes 2013-09-24 12:54:17 -07:00
phy phy/micrel: Add suspend/resume support to Micrel PHYs 2013-09-20 14:41:03 -04:00
plip
ppp ip: generate unique IP identificator if local fragmentation is allowed 2013-09-19 14:11:15 -04:00
slip
team net: team: inherit addr_assign_type along with dev_addr 2013-09-03 20:57:49 -04:00
usb net: cdc-phonet: Staticize usbpn_probe 2013-09-20 14:41:02 -04:00
vmxnet3 vmxnet3: Remove extern from function prototypes 2013-09-24 16:37:10 -07:00
wan wan: Remove extern from function prototypes 2013-09-24 16:40:19 -07:00
wimax wimax: Remove extern from function prototypes 2013-09-24 16:46:22 -07:00
wireless rtlwifi: Remove extern from function prototypes 2013-09-24 18:06:51 -07:00
xen-netback xen-netback: Don't destroy the netdev until the vif is shut down 2013-09-19 14:03:51 -04:00
dummy.c
eql.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c net loopback: Set loopback_dev to NULL when freed 2013-09-17 19:05:13 -04:00
macvlan.c macvlan: Move skb_clone check closer to call 2013-09-11 16:03:12 -04:00
macvtap.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
Makefile
mdio.c
mii.c
netconsole.c netconsole: fix a deadlock with rtnl and netconsole's mutex 2013-09-19 14:15:53 -04:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tuntap: correctly handle error in tun_set_iff() 2013-09-12 17:21:42 -04:00
veth.c
virtio_net.c virtio-net: Set RXCSUM feature if GUEST_CSUM is available 2013-09-03 21:36:41 -04:00
vxlan.c vxlan: Avoid creating fdb entry with NULL destination 2013-09-17 20:19:18 -04:00
xen-netfront.c