[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081213140322.GA21443@ioremap.net>
Date: Sat, 13 Dec 2008 17:03:22 +0300
From: Evgeniy Polyakov <zbr@...emap.net>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Ben Hutchings <bhutchings@...arflare.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 3/8] net: Add Generic Receive Offload infrastructure
On Sat, Dec 13, 2008 at 02:43:56PM +1100, Herbert Xu (herbert@...dor.apana.org.au) wrote:
> > BTW this should be pretty easy to implement through a second
> > entry, e.g., napi_gro_receive_pages() that works just like its
> > LRO counter-part lro_receive_frags. This would have its own
> > protocol hooks so it doesn't need to do anything nasty to get
> > at the packet headers.
>
> In fact we don't even need extra hooks. All we need to do is to
> keep one pre-allocated in the napi struct, and use that to hold
> the pages while we process it. If it's merged (we'd modify the
> low-level skb_gro_receive to merge the pages directly rather than
> the skb), then we return the skb to use it again for the next
> packet. If not then we just allocate a new skb. This way none
> of the protocol-specific code needs to handle pages at all.
This sounds good!
--
Evgeniy Polyakov
--
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