Skip to content

Commit

Permalink
bnx2: Use proper handler during netpoll.
Browse files Browse the repository at this point in the history
Netpoll needs to call the proper handler depending on the IRQ mode
and the vector.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Mar 24, 2010
1 parent 4327ba4 commit 1bf1e34
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7646,9 +7646,11 @@ poll_bnx2(struct net_device *dev)
int i;

for (i = 0; i < bp->irq_nvecs; i++) {
disable_irq(bp->irq_tbl[i].vector);
bnx2_interrupt(bp->irq_tbl[i].vector, &bp->bnx2_napi[i]);
enable_irq(bp->irq_tbl[i].vector);
struct bnx2_irq *irq = &bp->irq_tbl[i];

disable_irq(irq->vector);
irq->handler(irq->vector, &bp->bnx2_napi[i]);
enable_irq(irq->vector);
}
}
#endif
Expand Down

0 comments on commit 1bf1e34

Please sign in to comment.