From: Muli Ben-Yehuda <muli@il.ibm.com>
To: Yakov Lerner <iler.ml@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: attach additional value to skb
Date: Tue, 23 Oct 2007 07:42:14 +0200 [thread overview]
Message-ID: <20071023054214.GI5708@rhun.ibm.com> (raw)
In-Reply-To: <f36b08ee0710221303y5a846a27v1ebdc919db0f00ac@mail.gmail.com>
On Mon, Oct 22, 2007 at 10:03:47PM +0200, Yakov Lerner wrote:
> I want to add my custom destructor to the skb, the function pointer
> to be called at skb destruction time. Will the following work: if I
> push address of my_destructor to the
> sk-buff->destructor field, and then when my_destructor
> is called, I call the (saved) old value of sk-buff->destructor ?
> Will this work ?
It might, provided nothing else runs after you that will unilaterally
change the ->destructor field. I.e., it depends at which point in the
skb's life-time you set your hook.
Cheers,
Muli
--
SYSTOR 2007 --- 1st Annual Haifa Systems and Storage Conference 2007
http://www.haifa.il.ibm.com/Workshops/systor2007/
Virtualization workshop: Oct 29th, 2007 | Storage workshop: Oct 30th, 2007
prev parent reply other threads:[~2007-10-23 5:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-22 20:03 attach additional value to skb Yakov Lerner
2007-10-22 21:18 ` Wenhua Zhao
2007-10-23 5:42 ` Muli Ben-Yehuda [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071023054214.GI5708@rhun.ibm.com \
--to=muli@il.ibm.com \
--cc=iler.ml@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).