All of lore.kernel.org
 help / color / mirror / Atom feed
From: pranjas@gmail.com (Pranay Srivastava)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regarding skb and skb_frags
Date: Thu, 1 May 2014 16:12:43 +0530	[thread overview]
Message-ID: <CA+aCy1EhbKOxj9sdkEjdBWO=3TZE+gUqx6dROMvnSPfkW+hFoA@mail.gmail.com> (raw)

I was going through a function

dev_alloc_skb

and it seems that the skb_frags are created only if the data length
passed is > PAGE_SIZE.

My question is that an Ethernet frame won't be bigger than 1500 bytes
[correct?] so there never will be skb_frags for Ethernet frames.
However I've seen skb_frags appeared when sending large data.

I'm not sure how to understand this. Does the driver pokes IP header
to check how many fragments would be coming and decides (on the rcv
side) how much to pass in dev_alloc_skb ?

Thanks
-- 
        ---P.K.S

             reply	other threads:[~2014-05-01 10:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 10:42 Pranay Srivastava [this message]
2014-05-01 13:59 ` Regarding skb and skb_frags Valdis.Kletnieks at vt.edu
2014-05-01 14:09   ` Pranay Srivastava
2014-05-01 16:20     ` Jeff Haran
2014-05-02  3:16       ` Pranay Srivastava
2014-05-02 16:21         ` Jeff Haran
2014-05-13  3:04 ` Li Wei

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='CA+aCy1EhbKOxj9sdkEjdBWO=3TZE+gUqx6dROMvnSPfkW+hFoA@mail.gmail.com' \
    --to=pranjas@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.