[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7e0dd21a0904150614y301a01e4rdec1fe4f9a14c13f@mail.gmail.com>
Date: Wed, 15 Apr 2009 15:14:22 +0200
From: Johann Baudy <johann.baudy@...-log.net>
To: Evgeniy Polyakov <zbr@...emap.net>
Cc: Herbert Xu <herbert@...dor.apana.org.au>, netdev@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Patrick McHardy <kaber@...sh.net>, jamal <hadi@...erus.ca>
Subject: Re: [PATCH] TX_RING and packet mmap
Thanks for your reply, Evgeniy,
> It can work but do not place it into skb itself, but into shared area,
> which is slab allocated and does not suffer from size restrictions.
Ok
> You can also add shared-info destructor, which could be used by other
Kind of:
struct skb_shared_info {
atomic_t dataref;
....
+void (*destructor)(struct sk_buff *skb, void *
destructor_arg);
+void * destructor_arg;
};
Should I call this new destructor from skb_release_data() before
kfree(skb->head) ?
or in skb_release_head_state()? close to current destructor call
Best regards,
Johann
--
Johann Baudy
johaahn@...il.com
--
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