Commit 3e1d83f7 authored by Tony Zelenoff's avatar Tony Zelenoff Committed by David S. Miller

atl1: handle rx in separate condition

Remove rx from unlikely optimization in case of rx is very
likely thing for network card. This also reduce code a bit.
Signed-off-by: default avatarTony Zelenoff <antonz@parallels.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c5c23260
...@@ -2502,18 +2502,19 @@ static irqreturn_t atl1_intr(int irq, void *data) ...@@ -2502,18 +2502,19 @@ static irqreturn_t atl1_intr(int irq, void *data)
if (status & ISR_CMB_TX) if (status & ISR_CMB_TX)
atl1_intr_tx(adapter); atl1_intr_tx(adapter);
/* rx event */
if (status & ISR_CMB_RX)
alt1_intr_rx(adapter);
/* rx exception */ /* rx exception */
if (unlikely(status & (ISR_RXF_OV | ISR_RFD_UNRUN | if (unlikely(status & (ISR_RXF_OV | ISR_RFD_UNRUN |
ISR_RRD_OV | ISR_HOST_RFD_UNRUN | ISR_RRD_OV | ISR_HOST_RFD_UNRUN |
ISR_HOST_RRD_OV | ISR_CMB_RX))) { ISR_HOST_RRD_OV))) {
if (status & (ISR_RXF_OV | ISR_RFD_UNRUN | if (netif_msg_intr(adapter))
ISR_RRD_OV | ISR_HOST_RFD_UNRUN | dev_printk(KERN_DEBUG,
ISR_HOST_RRD_OV)) &adapter->pdev->dev,
if (netif_msg_intr(adapter)) "rx exception, ISR = 0x%x\n",
dev_printk(KERN_DEBUG, status);
&adapter->pdev->dev,
"rx exception, ISR = 0x%x\n",
status);
atl1_intr_rx(adapter); atl1_intr_rx(adapter);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment