From: Keir Fraser Subject: Re: RX_COPY_THRESHOLD in netfront Date: Sat, 12 Aug 2006 10:43:18 +0100 Message-ID: References: <20060812002919.GA17238@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060812002919.GA17238@gondor.apana.org.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Herbert Xu Cc: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On 12/8/06 1:29 am, "Herbert Xu" wrote: > I do concede that we're wasting effort in repeatedly initialising skb's > that we throw away in the case of jumbo packets. We can remove that > waste by maintaining our own list of unused skb's that we can simply > put back on the ring in network_alloc_rx_buffers without going through > alloc_skb again. If we're successfully allocating *whole pages* in network_alloc_rx_buffers(), I'd be surprised if we couldn't allocate a 256-byte skbuff in netif_poll(). On the other hand, just putting the skbuffs on the rx_batch queue is an easier change to make. -- Keir