From: Jeff Garzik <jeff@garzik.org>
To: divy@chelsio.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
swise@opengridcomputing.com
Subject: Re: [PATCH 2/7] cxgb3 - fix netpoll hanlder
Date: Mon, 28 May 2007 18:35:07 -0400 [thread overview]
Message-ID: <465B591B.1010507@garzik.org> (raw)
In-Reply-To: <20070526225952.12115.30971.stgit@localhost.localdomain>
divy@chelsio.com wrote:
> From: Divy Le Ray <divy@chelsio.com>
>
> Fix netpoll handler to work with line interrupt, msi and msi-x.
>
> Signed-off-by: Divy Le Ray <divy@chelsio.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*
next prev parent reply other threads:[~2007-05-28 22:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-26 22:59 [PATCH 2/7] cxgb3 - fix netpoll hanlder divy
2007-05-28 22:35 ` Jeff Garzik [this message]
2007-05-29 23:59 ` Jeremy Fitzhardinge
2007-05-30 0:42 ` Jeff Garzik
2007-05-30 16:06 ` Jeremy Fitzhardinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=465B591B.1010507@garzik.org \
--to=jeff@garzik.org \
--cc=divy@chelsio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=swise@opengridcomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.