be2net: use eq-id to calculate cev-isr reg offset

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>
This commit is contained in:
Sathya Perla
2010-02-02 07:48:40 -08:00
committed by David S. Miller
parent 1e98cadb0d
commit 55bdeed9f6

View File

@@ -1350,7 +1350,7 @@ static irqreturn_t be_intx(int irq, void *dev)
int isr; int isr;
isr = ioread32(adapter->csr + CEV_ISR0_OFFSET + 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) if (!isr)
return IRQ_NONE; return IRQ_NONE;