[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1239137800.21227.10.camel@dogo.mojatatu.com>
Date: Tue, 07 Apr 2009 16:56:40 -0400
From: jamal <hadi@...erus.ca>
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>
Subject: Re: [PATCH] TX_RING and packet mmap
On Tue, 2009-04-07 at 16:38 +0200, Johann Baudy wrote:
> Hi All,
> Many thanks for your replies!
>
> Indeed, I've tried to find a solution to store data in skb (valid
> until destructor).
Makes sense for what you are trying to do (or someone else a long
while back who wanted to notify user space of a sent skb).
Any skb metadata can mutate along its path. Actually even
if you used a field off the skb->data it too could be changed
somewhere along the path before destructor is invoked.
There maybe a "hard way" to achieve your goal: use the address
of the skb to derive your index; i am not 100% sure if your destructor
will always be called (check skb_expand() for example).
cheers,
jamal
--
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