Thread (26 messages) 26 messages, 5 authors, 2012-01-07

Re: [PATCH 3/6] net: add support for per-paged-fragment destructors

From: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Date: 2012-01-06 01:24:29

On Thu, Jan 05, 2012 at 05:13:41PM +0000, Ian Campbell wrote:
Entities which care about the complete lifecycle of pages which they inject
into the network stack via an skb paged fragment can choose to set this
destructor in order to receive a callback when the stack is really finished
with a page (including all clones, retransmits, pull-ups etc etc).
[...]
quoted hunk ↗ jump to hunk
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -143,9 +143,16 @@ struct sk_buff;
 
 typedef struct skb_frag_struct skb_frag_t;
 
+struct skb_frag_destructor {
+	atomic_t ref;
+	int (*destroy)(void *data);
+	void *data;
+};
+
[...]

What happened to removal of 'data' field from this structure?

ref: http://www.spinics.net/lists/netdev/msg179050.html

Best Regards,
Michał Mirosław
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help