diff options
author | Sathya Perla <sathyap@serverengines.com> | 2010-02-02 07:48:40 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-02 07:48:40 -0800 |
commit | 55bdeed9f67a92f184e1ddcdd722e622d9dd10c6 (patch) | |
tree | 2eb034830274c6e2be764dc511fea61772e39147 /drivers/net/benet | |
parent | 1e98cadb0d2b9f945f35beee4a0ce667f3c6dbe4 (diff) | |
download | op-kernel-dev-55bdeed9f67a92f184e1ddcdd722e622d9dd10c6.zip op-kernel-dev-55bdeed9f67a92f184e1ddcdd722e622d9dd10c6.tar.gz |
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>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r-- | drivers/net/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 6f26338..626b76c 100644 --- a/drivers/net/benet/be_main.c +++ b/drivers/net/benet/be_main.c @@ -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; |