OpenCloudOS-Kernel/drivers/net/ixgb
David S. Miller 49d85c502e [NET]: Fix interrupt semaphore corruption in Intel drivers.
Several of the Intel ethernet drivers keep an atomic counter used to
manage when to actually hit the hardware with a disable or an enable.

The way the net_rx_work() breakout logic works during a pending
napi_disable() is that it simply unschedules the poll even if it
still has work.

This can potentially leave interrupts disabled, but that is OK
because all of the drivers are about to disable interrupts
anyways in all such code paths that do a napi_disable().

Unfortunately, this trips up the semaphore used here in the Intel
drivers.  If you hit this case, when you try to bring the interface
back up it won't enable interrupts.  A reload of the driver module
fixes it of course.

So what we do is make sure all the sequences now go:

	napi_disable();
	atomic_set(&adapter->irq_sem, 0);
	*_irq_disable();

which makes sure the counter is always in the correct state.

Reported by Robert Olsson.

Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-20 20:31:39 -08:00
..
Makefile e100, e1000, ixgb: update copyright header and remove LICENSE 2006-09-27 12:53:14 -07:00
ixgb.h ixgb: fix sparse warnings 2007-10-30 14:32:16 -04:00
ixgb_ee.c ixgb: endianness 2007-10-10 16:52:01 -07:00
ixgb_ee.h ixgb: endianness 2007-10-10 16:52:01 -07:00
ixgb_ethtool.c ixgb: fix sparse warnings 2007-10-30 14:32:16 -04:00
ixgb_hw.c ixgb: fix sparse warnings 2007-10-30 14:32:16 -04:00
ixgb_hw.h ixgb: endianness 2007-10-10 16:52:01 -07:00
ixgb_ids.h e100, e1000, ixgb: update copyright header and remove LICENSE 2006-09-27 12:53:14 -07:00
ixgb_main.c [NET]: Fix interrupt semaphore corruption in Intel drivers. 2008-01-20 20:31:39 -08:00
ixgb_osdep.h PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
ixgb_param.c ixgb: fix sparse warnings 2007-10-30 14:32:16 -04:00