* [PATCH] qlcnic: fix poll implementation
@ 2010-08-23 7:57 Yinglin Luan
2010-08-24 3:29 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yinglin Luan @ 2010-08-23 7:57 UTC (permalink / raw)
To: netdev; +Cc: davem, monstr
Function qlcnic_intr has pointer to qlcnic_host_sds_ring
as second parameter not pointer to qlcnic_adapter.
Signed-off-by: Yinglin Luan <synmyth@gmail.com>
---
drivers/net/qlcnic/qlcnic_main.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c
index bf6d87a..a934dbc 100644
--- a/drivers/net/qlcnic/qlcnic_main.c
+++ b/drivers/net/qlcnic/qlcnic_main.c
@@ -2190,9 +2190,16 @@ static int qlcnic_rx_poll(struct napi_struct *napi, int budget)
#ifdef CONFIG_NET_POLL_CONTROLLER
static void qlcnic_poll_controller(struct net_device *netdev)
{
+ int ring;
+ struct qlcnic_host_sds_ring *sds_ring;
struct qlcnic_adapter *adapter = netdev_priv(netdev);
+ struct qlcnic_recv_context *recv_ctx = &adapter->recv_ctx;
+
disable_irq(adapter->irq);
- qlcnic_intr(adapter->irq, adapter);
+ for (ring = 0; ring < adapter->max_sds_rings; ring++) {
+ sds_ring = &recv_ctx->sds_rings[ring];
+ qlcnic_intr(adapter->irq, sds_ring);
+ }
enable_irq(adapter->irq);
}
#endif
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] qlcnic: fix poll implementation
2010-08-23 7:57 [PATCH] qlcnic: fix poll implementation Yinglin Luan
@ 2010-08-24 3:29 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-08-24 3:29 UTC (permalink / raw)
To: synmyth; +Cc: netdev, monstr
From: Yinglin Luan <synmyth@gmail.com>
Date: Mon, 23 Aug 2010 15:57:56 +0800
> Function qlcnic_intr has pointer to qlcnic_host_sds_ring
> as second parameter not pointer to qlcnic_adapter.
>
> Signed-off-by: Yinglin Luan <synmyth@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-24 3:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 7:57 [PATCH] qlcnic: fix poll implementation Yinglin Luan
2010-08-24 3:29 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.