[PATCH V6 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-05-26 Thread Shirley Ma
This patch adds userspace buffers support in skb shared info. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to notify userspace to release the buffers once lower device has done DMA (Last reference to that skb has gone). If there is

Re: [PATCH V6 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-05-26 Thread Eric Dumazet
Le jeudi 26 mai 2011 à 12:36 -0700, Shirley Ma a écrit : This patch adds userspace buffers support in skb shared info. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to notify userspace to release the buffers once lower device has

Re: [PATCH V6 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-05-26 Thread Shirley Ma
On Thu, 2011-05-26 at 22:04 +0200, Eric Dumazet wrote: Le jeudi 26 mai 2011 à 12:36 -0700, Shirley Ma a écrit : This patch adds userspace buffers support in skb shared info. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to

Re: [PATCH V6 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-05-26 Thread Eric Dumazet
Le jeudi 26 mai 2011 à 13:24 -0700, Shirley Ma a écrit : I could reduce callback pointer by moving it to *arg, but not desc, this indicates that which buffer DMA hasn't done yet in *arg. I guess you dont need to use skb itself to hold all your states ? I understand its convenient for you,

Re: [PATCH V6 2/4 net-next] skbuff: Add userspace zero-copy buffers in skb

2011-05-26 Thread Shirley Ma
On Thu, 2011-05-26 at 22:55 +0200, Eric Dumazet wrote: Le jeudi 26 mai 2011 à 13:24 -0700, Shirley Ma a écrit : I could reduce callback pointer by moving it to *arg, but not desc, this indicates that which buffer DMA hasn't done yet in *arg. I guess you dont need to use skb itself to