public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Aaron Williams <awilliams@atheros.com>
To: <netdev@vger.kernel.org>
Subject: skb allocation size question
Date: Wed, 1 Sep 2010 11:51:02 -0700	[thread overview]
Message-ID: <201009011151.02639.awilliams@atheros.com> (raw)

Hi,

I have been trying to track down an issue in one of our drivers with SKB 
allocation and in my research I came across something that seems a bit 
strange. In __alloc_skb, a block for the data allocates size + sizeof(struct 
skb_shared_info) bytes, yet skb->truesize is set to size + sizeof(struct 
sk_buff). Is there a reason for this discrepancy?

-Aaron Williams

             reply	other threads:[~2010-09-01 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01 18:51 Aaron Williams [this message]
2010-09-01 19:04 ` skb allocation size question Eric Dumazet

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=201009011151.02639.awilliams@atheros.com \
    --to=awilliams@atheros.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