From: Ron Mercer <ron.mercer@qlogic.com>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
shashank.pandhare@qlogic.com,
jagannatha.narayanaswami@qlogic.com
Subject: Re: [net-next PATCH 1/3] qlge: Move TX completion processing to send path.
Date: Fri, 21 Aug 2009 10:23:01 -0700 [thread overview]
Message-ID: <20090821172301.GB12770@linux-ox1b.qlogic.org> (raw)
In-Reply-To: <20090820.021854.254431313.davem@davemloft.net>
On Thu, Aug 20, 2009 at 02:18:54AM -0700, David Miller wrote:
> From: Ron Mercer <ron.mercer@qlogic.com>
> Date: Wed, 19 Aug 2009 16:53:09 -0700
>
> > @@ -1205,6 +1205,7 @@ struct bq_desc {
> > };
> >
> > #define QL_TXQ_IDX(qdev, skb) (smp_processor_id()%(qdev->tx_ring_count))
> > +#define TXQ_CLEAN_TIME (HZ/4)
> >
> > struct tx_ring {
> > /*
>
> Running this every 1/4 of a second, even when no TX activity is
> happening, is very bad for power management.
>
> And starting the timer in response to whether there are TX queue
> entries active or not will add overhead and races.
>
> This really isn't workable.
>
> I really and truly believe that the best place for this is in NAPI
> context. So bring back the MSI-X vector for TX completions, and
> make it schedule a NAPI poll.
I can see your point about not wanting all the drivers popping a timer
for each TX queue. Though I don't see the race condition since the
handler would be protected by netdev_queue->_xmit_lock.
I'll move TX completions into NAPI as you indicated. I still need to
dedicate the MSIX vectors to RSS, but I will give each vector a number
of TX rings to service in NAPI as well.
Our card is a 4 function card and on
powerpc there are only 8 vectors per device which get divided up among the
functions, netting us 2 vectors total. That is what precipitated moving
the TX completion handling to send path and timer.
next prev parent reply other threads:[~2009-08-21 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 23:53 [net-next PATCH 0/3] qlge: Change RSS ring to MSIx vector mapping Ron Mercer
2009-08-19 23:53 ` [net-next PATCH 1/3] qlge: Move TX completion processing to send path Ron Mercer
2009-08-20 9:18 ` David Miller
2009-08-21 17:23 ` Ron Mercer [this message]
2009-08-21 20:25 ` David Miller
2009-08-19 23:53 ` [net-next PATCH 2/3] qlge: Change RSS ring to MSIx vector mapping Ron Mercer
2009-08-19 23:53 ` [net-next PATCH 3/3] qlge: Remove unused workers and irq handler Ron Mercer
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=20090821172301.GB12770@linux-ox1b.qlogic.org \
--to=ron.mercer@qlogic.com \
--cc=davem@davemloft.net \
--cc=jagannatha.narayanaswami@qlogic.com \
--cc=netdev@vger.kernel.org \
--cc=shashank.pandhare@qlogic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox