[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090821172301.GB12770@linux-ox1b.qlogic.org>
Date: Fri, 21 Aug 2009 10:23:01 -0700
From: Ron Mercer <ron.mercer@...gic.com>
To: David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
shashank.pandhare@...gic.com, jagannatha.narayanaswami@...gic.com
Subject: Re: [net-next PATCH 1/3] qlge: Move TX completion processing to
send path.
On Thu, Aug 20, 2009 at 02:18:54AM -0700, David Miller wrote:
> From: Ron Mercer <ron.mercer@...gic.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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists