]> git.baikalelectronics.ru Git - kernel.git/commitdiff
qlcnic: fix poll implementation
authorYinglin Luan <synmyth@gmail.com>
Sun, 22 Aug 2010 21:57:56 +0000 (21:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Aug 2010 03:28:55 +0000 (20:28 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c

index 213e3656d953be316732ec22e82dbaf8552b0555..66eea59720209f85278cf223b6d723f879337aac 100644 (file)
@@ -2188,9 +2188,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