Skip to content

Commit

Permalink
atl1: handle rx in separate condition
Browse files Browse the repository at this point in the history
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: Tony Zelenoff <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Tony Zelenoff authored and davem330 committed Apr 15, 2012
1 parent c5c2326 commit 3e1d83f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions drivers/net/ethernet/atheros/atlx/atl1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,18 +2502,19 @@ static irqreturn_t atl1_intr(int irq, void *data)
if (status & ISR_CMB_TX)
atl1_intr_tx(adapter);

/* rx event */
if (status & ISR_CMB_RX)
alt1_intr_rx(adapter);

/* rx exception */
if (unlikely(status & (ISR_RXF_OV | ISR_RFD_UNRUN |
ISR_RRD_OV | ISR_HOST_RFD_UNRUN |
ISR_HOST_RRD_OV | ISR_CMB_RX))) {
if (status & (ISR_RXF_OV | ISR_RFD_UNRUN |
ISR_RRD_OV | ISR_HOST_RFD_UNRUN |
ISR_HOST_RRD_OV))
if (netif_msg_intr(adapter))
dev_printk(KERN_DEBUG,
&adapter->pdev->dev,
"rx exception, ISR = 0x%x\n",
status);
ISR_HOST_RRD_OV))) {
if (netif_msg_intr(adapter))
dev_printk(KERN_DEBUG,
&adapter->pdev->dev,
"rx exception, ISR = 0x%x\n",
status);
atl1_intr_rx(adapter);
}

Expand Down

0 comments on commit 3e1d83f

Please sign in to comment.