[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090416111616.GB28509@ioremap.net>
Date: Thu, 16 Apr 2009 15:16:16 +0400
From: Evgeniy Polyakov <zbr@...emap.net>
To: Johann Baudy <johann.baudy@...-log.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
On Wed, Apr 15, 2009 at 03:14:22PM +0200, Johann Baudy (johann.baudy@...-log.net) wrote:
> +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
I think it should only be called when shared area is about to be freed
and not when attached skb is freed. Thus you can put your pages into
fraglist and reuse them after the last reference to the shared area is
gone.
--
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