[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1336011260.22133.754.camel@edumazet-glaptop>
Date: Thu, 03 May 2012 04:14:20 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: alexander.duyck@...il.com, alexander.h.duyck@...el.com,
netdev@...r.kernel.org, ncardwell@...gle.com, therbert@...gle.com,
jeffrey.t.kirsher@...el.com, mchan@...adcom.com,
mcarlson@...adcom.com, herbert@...dor.hengli.com.au,
bhutchings@...arflare.com, ilpo.jarvinen@...sinki.fi,
maze@...gle.com
Subject: Re: [PATCH net-next] net: implement tcp coalescing in
tcp_queue_rcv()
On Wed, 2012-05-02 at 21:11 -0400, David Miller wrote:
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Wed, 02 May 2012 21:58:29 +0200
>
> > From: Eric Dumazet <edumazet@...gle.com>
> >
> > Extend tcp coalescing implementing it from tcp_queue_rcv(), the main
> > receiver function when application is not blocked in recvmsg().
> >
> > Function tcp_queue_rcv() is moved a bit to allow its call from
> > tcp_data_queue()
> >
> > This gives good results especially if GRO could not kick, and if skb
> > head is a fragment.
> >
> > Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>
> Applied.
Thanks David
My next step is to provide a common helper to NAPI drivers to replace
netdev_alloc_skb_ip_align(struct net_device *dev, unsigned int len)
by :
struct sk_buff *napi_alloc_rxskb(struct napi_struct *napi, unsigned int len)
That will manage a cache of one page, splitted in fragments as needed.
(roughly the code we added in tg3 as POC)
Because converting drivers to build_skb() is a too slow process.
--
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