netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paul Marks" <paul@pmarks.net>
To: netdev@vger.kernel.org
Subject: When should kfree_skb be used?
Date: Thu, 8 May 2008 21:49:27 -0700	[thread overview]
Message-ID: <8e5b27790805082149y6d9f604ds7feefe2804f3823c@mail.gmail.com> (raw)

Hi, I'm trying to make sense of the ipip6_rcv function here:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=net/ipv6/sit.c;hb=HEAD#l564

Specifically, why is kfree_skb called when pskb_may_pull(...) returns
true, but not called when it returns false?  Is there something in the
code path which increments the skb's reference count that I'm not
noticing?

             reply	other threads:[~2008-05-09  4:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09  4:49 Paul Marks [this message]
2008-05-09  6:34 ` When should kfree_skb be used? Paul Marks
2008-05-09  6:41   ` David Miller
2008-05-09  6:55     ` Paul Marks

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=8e5b27790805082149y6d9f604ds7feefe2804f3823c@mail.gmail.com \
    --to=paul@pmarks.net \
    --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).