* [PATCH] be2net: use eq-id to calculate cev-isr reg offset
@ 2010-01-29 7:08 Sathya Perla
2010-02-02 15:48 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sathya Perla @ 2010-01-29 7:08 UTC (permalink / raw)
To: netdev
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>
---
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 90c5661..5ac053a 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;
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] be2net: use eq-id to calculate cev-isr reg offset
2010-01-29 7:08 [PATCH] be2net: use eq-id to calculate cev-isr reg offset Sathya Perla
@ 2010-02-02 15:48 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-02-02 15:48 UTC (permalink / raw)
To: sathyap; +Cc: netdev
From: Sathya Perla <sathyap@serverengines.com>
Date: Fri, 29 Jan 2010 12:38:36 +0530
> 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>
Applied to net-2.6, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-02 15:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 7:08 [PATCH] be2net: use eq-id to calculate cev-isr reg offset Sathya Perla
2010-02-02 15:48 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).