linux_old1/drivers/net/ethernet/emulex/benet
Sathya Perla d0b9cec3e2 be2net: fix unconditionally returning IRQ_HANDLED in INTx
commit e49cc34f introduced an unconditional IRQ_HANDLED return in be_intx()
to workaround Lancer and BE2 HW issues. This is bad as it prevents the kernel
from detecting interrupt storms due to broken HW.

The BE2/Lancer HW issues are:
1) In Lancer, there is no means for the driver to detect if the interrupt
belonged to device, other than counting and notifying events.
2) In Lancer de-asserting INTx takes a while, causing the INTx irq handler
to be called multiple times till the de-assert happens.
3) In BE2, we see an occasional interrupt even when EQs are unarmed.

Issue (1) can cause the notified events to be orphaned, if NAPI was already
running.
This patch fixes this issue by scheduling NAPI only if it is not scheduled
already. Doing this also takes care of possible events_get() race that may be
caused due to issue (2) and (3). Also, IRQ_HANDLED is returned only the first
time zero events are detected.
(Thanks Ben H. for the feedback and suggestions.)

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-01-12 15:33:01 -08:00
..
Kconfig net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
Makefile be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00
be.h be2net: fix unconditionally returning IRQ_HANDLED in INTx 2013-01-12 15:33:01 -08:00
be_cmds.c be2net: fix be_close() to ensure all events are ack'ed 2012-12-18 16:18:39 -08:00
be_cmds.h be2net: fix wrong usage of adapter->generation 2012-11-07 16:59:52 -05:00
be_ethtool.c be2net: Fix ethtool get_settings output for VF 2012-10-21 22:15:36 -04:00
be_hw.h be2net: fix access to SEMAPHORE reg 2012-11-07 16:59:52 -05:00
be_main.c be2net: fix unconditionally returning IRQ_HANDLED in INTx 2013-01-12 15:33:01 -08:00
be_roce.c be2net: remove roce on lancer 2012-11-07 16:59:52 -05:00
be_roce.h be2net: Add functionality to support RoCE driver 2012-05-08 11:17:47 -07:00