[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070510.150605.94557473.davem@davemloft.net>
Date: Thu, 10 May 2007 15:06:05 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: gaagaan@...il.com
Cc: dlstevens@...ibm.com, rick.jones2@...com, johnpol@....mipt.ru,
krkumar2@...ibm.com, netdev@...r.kernel.org,
netdev-owner@...r.kernel.org
Subject: Re: [RFC] New driver API to speed up small packets xmits
From: Gagan Arneja <gaagaan@...il.com>
Date: Thu, 10 May 2007 14:50:19 -0700
> David Miller wrote:
>
> > If you drop the TX lock, the number of free slots can change
> > as another cpu gets in there queuing packets.
>
> Can you ever have more than one thread inside the driver? Isn't
> xmit_lock held while we're in there?
There are restrictions wrt. when the xmit_lock and the
queue lock can be held at the same time.
The devil is definitely in the details if you try to
implemen this. It definitely lends support for Eric D.'s
assertion that this change will only add bugs and doing
something simple like prefetches is proabably a safer
route to go down.
-
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