[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <465B591B.1010507@garzik.org>
Date: Mon, 28 May 2007 18:35:07 -0400
From: Jeff Garzik <jeff@...zik.org>
To: divy@...lsio.com
CC: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
swise@...ngridcomputing.com
Subject: Re: [PATCH 2/7] cxgb3 - fix netpoll hanlder
divy@...lsio.com wrote:
> From: Divy Le Ray <divy@...lsio.com>
>
> Fix netpoll handler to work with line interrupt, msi and msi-x.
>
> Signed-off-by: Divy Le Ray <divy@...lsio.com>
> ---
>
> drivers/net/cxgb3/cxgb3_main.c | 12 +++++++++---
> drivers/net/cxgb3/sge.c | 1 -
> 2 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
> index 67b4b21..e0ef724 100644
> --- a/drivers/net/cxgb3/cxgb3_main.c
> +++ b/drivers/net/cxgb3/cxgb3_main.c
> @@ -2076,10 +2076,16 @@ static void vlan_rx_kill_vid(struct net_
> static void cxgb_netpoll(struct net_device *dev)
> {
> struct adapter *adapter = dev->priv;
> - struct sge_qset *qs = dev2qset(dev);
> + struct port_info *pi = netdev_priv(dev);
> + int qidx;
>
> - t3_intr_handler(adapter, qs->rspq.polling) (adapter->pdev->irq,
> - adapter);
> + for (qidx = pi->first_qset; qidx < pi->first_qset + pi->nqsets; qidx++) {
> + struct sge_qset *qs = &adapter->sge.qs[qidx];
> +
> + t3_intr_handler(adapter, qs->rspq.polling) (0,
> + (adapter->flags & USING_MSIX) ?
> + (void *)qs : (void *)adapter);
Remove needless casts to void*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists