netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linear sk_buff
@ 2010-05-05 19:12 Mark Ryden
  2010-05-05 19:32 ` Phil Sutter
  2010-05-05 19:35 ` Rémi Denis-Courmont
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Ryden @ 2010-05-05 19:12 UTC (permalink / raw)
  To: netdev

Hello,
 I would appreciate if someone in this mailing list  can say in a
sentence or two what is a linear
sk_buff and what is a non linear sk_buff; does it has to do with fragmentation?
(I am sure that many know the answer, but I am confused and googling
made me overconfused)

Regards, and sorry for the noise,

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linear sk_buff
  2010-05-05 19:12 linear sk_buff Mark Ryden
@ 2010-05-05 19:32 ` Phil Sutter
  2010-05-05 19:35 ` Rémi Denis-Courmont
  1 sibling, 0 replies; 3+ messages in thread
From: Phil Sutter @ 2010-05-05 19:32 UTC (permalink / raw)
  To: netdev

Hi,

On Wed, May 05, 2010 at 10:12:06PM +0300, Mark Ryden wrote:
>  I would appreciate if someone in this mailing list  can say in a
> sentence or two what is a linear
> sk_buff and what is a non linear sk_buff; does it has to do with fragmentation?
> (I am sure that many know the answer, but I am confused and googling
> made me overconfused)

As far as I can tell, linear and non-linear sk_buffs differ in how the
data they contain is kept internally. Linear sk_buffs are trivial, it's
data resides in one, continuous block. In non-linear sk_buffs, data is
spread across multiple junks, organised in a data structure comparable
to e.g. scatterlists.

For further information, I'd highly recommend David Miller's "how SKBs
work": http://vger.kernel.org/~davem/skb.html .

Greetings, Phil

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linear sk_buff
  2010-05-05 19:12 linear sk_buff Mark Ryden
  2010-05-05 19:32 ` Phil Sutter
@ 2010-05-05 19:35 ` Rémi Denis-Courmont
  1 sibling, 0 replies; 3+ messages in thread
From: Rémi Denis-Courmont @ 2010-05-05 19:35 UTC (permalink / raw)
  To: Mark Ryden; +Cc: netdev

Le mercredi 5 mai 2010 22:12:06 Mark Ryden, vous avez écrit :
> Hello,
>  I would appreciate if someone in this mailing list  can say in a
> sentence or two what is a linear
> sk_buff and what is a non linear sk_buff; does it has to do with
> fragmentation? (I am sure that many know the answer, but I am confused and
> googling made me overconfused)

A linear sk_buff is one that has no memory pages and no fragments sk_buff.

Such a buffer is made of a contiguous portion of the (kernel) memory.


-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-05 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 19:12 linear sk_buff Mark Ryden
2010-05-05 19:32 ` Phil Sutter
2010-05-05 19:35 ` Rémi Denis-Courmont

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).