Messages in this thread | | | Date | Thu, 17 Jun 2010 21:21:19 +1000 | From | Herbert Xu <> | Subject | Re: [RFC PATCH v7 01/19] Add a new structure for skb buffer from external. |
| |
On Sun, Jun 13, 2010 at 04:58:36PM +0800, Xin, Xiaohui wrote: > > Herbert, > In this way, I think we should create 3 functions at least in drivers to allocate rx buffer, to receive the rx buffers, and to clean the rx buffers. > > We can also have another way here. We can provide a function to only substitute > alloc_page(), and a function to release the pages when cleaning the rx buffers.
Yes that's exactly what I had in mind.
Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |