linux/drivers/net/bonding
Neil Horman c2355e1ab9 bonding: Fix bonding drivers improper modification of netpoll structure
The bonding driver currently modifies the netpoll structure in its xmit path
while sending frames from netpoll.  This is racy, as other cpus can access the
netpoll structure in parallel. Since the bonding driver points np->dev to a
slave device, other cpus can inadvertently attempt to send data directly to
slave devices, leading to improper locking with the bonding master, lost frames,
and deadlocks.  This patch fixes that up.

This patch also removes the real_dev pointer from the netpoll structure as that
data is really only used by bonding in the poll_controller, and we can emulate
its behavior by check each slave for IS_UP.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-18 08:32:07 -07:00
..
Makefile
bond_3ad.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-09-27 01:03:03 -07:00
bond_3ad.h
bond_alb.c bonding: correctly process non-linear skbs 2010-09-14 14:25:32 -07:00
bond_alb.h
bond_ipv6.c bonding: fix bond_inet6addr_event() 2010-07-19 09:34:31 -07:00
bond_main.c bonding: Fix bonding drivers improper modification of netpoll structure 2010-10-18 08:32:07 -07:00
bond_sysfs.c bonding: add retransmit membership reports tunable 2010-10-05 20:26:58 -07:00
bonding.h bonding: add retransmit membership reports tunable 2010-10-05 20:26:58 -07:00