aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2011-02-03 11:27:52 -0500
committerFrancois Romieu <romieu@fr.zoreil.com>2011-02-04 04:38:18 -0500
commitf60ac8e7ab7cbb413a0131d5665b053f9f386526 (patch)
tree45e54d0894186d2f12130ec580805dc50fcab1a5 /drivers/net
parent1519e57fe81c14bb8fa4855579f19264d1ef63b4 (diff)
r8169: prevent RxFIFO induced loops in the irq handler.
While the RxFIFO interruption is masked for most 8168, nothing prevents it to appear in the irq status word. This is no excuse to crash. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Cc: Ivan Vecera <ivecera@redhat.com> Cc: Hayes <hayeswang@realtek.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/r8169.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 40dabe2b3dae..59ccf0c5c610 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -4650,6 +4650,15 @@ static irqreturn_t rtl8169_interrupt(int irq, void *dev_instance)
4650 netif_stop_queue(dev); 4650 netif_stop_queue(dev);
4651 rtl8169_tx_timeout(dev); 4651 rtl8169_tx_timeout(dev);
4652 goto done; 4652 goto done;
4653 /* Testers needed. */
4654 case RTL_GIGA_MAC_VER_17:
4655 case RTL_GIGA_MAC_VER_19:
4656 case RTL_GIGA_MAC_VER_20:
4657 case RTL_GIGA_MAC_VER_21:
4658 case RTL_GIGA_MAC_VER_23:
4659 case RTL_GIGA_MAC_VER_24:
4660 case RTL_GIGA_MAC_VER_27:
4661 case RTL_GIGA_MAC_VER_28:
4653 /* Experimental science. Pktgen proof. */ 4662 /* Experimental science. Pktgen proof. */
4654 case RTL_GIGA_MAC_VER_12: 4663 case RTL_GIGA_MAC_VER_12:
4655 case RTL_GIGA_MAC_VER_25: 4664 case RTL_GIGA_MAC_VER_25: