Skip to content

Commit

Permalink
be2net: use eq-id to calculate cev-isr reg offset
Browse files Browse the repository at this point in the history
cev-isr reg offset for each function is better calculated using (any) eq-id
alloted to that function instead of using pci-func number(which
does not work in some configurations...)

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Feb 2, 2010
1 parent 1e98cad commit 55bdeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ static irqreturn_t be_intx(int irq, void *dev)
int isr;

isr = ioread32(adapter->csr + CEV_ISR0_OFFSET +
be_pci_func(adapter) * CEV_ISR_SIZE);
(adapter->tx_eq.q.id/ 8) * CEV_ISR_SIZE);
if (!isr)
return IRQ_NONE;

Expand Down

0 comments on commit 55bdeed

Please sign in to comment.