linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* skb fragmentation
@ 2004-01-13  8:49 Sirotkin, Alexander
  2004-01-13  9:48 ` Muli Ben-Yehuda
  0 siblings, 1 reply; 3+ messages in thread
From: Sirotkin, Alexander @ 2004-01-13  8:49 UTC (permalink / raw)
  To: linux-kernel

I've seen a couple of drivers (for instance - e100) using fragmented skb 
on transmit path.
I was wondering, how one can do the same on receive  ?

Anybody ever tried to do this ? Is there any example of such a driver ?

-- 
Alexander Sirotkin
SW Engineer

Texas Instruments
Broadband Communications Israel (BCIL)
Tel:  +972-9-9706587
________________________________________________________________________
"Those who do not understand Unix are condemned to reinvent it, poorly."
      -- Henry Spencer 


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

* Re: skb fragmentation
  2004-01-13  8:49 skb fragmentation Sirotkin, Alexander
@ 2004-01-13  9:48 ` Muli Ben-Yehuda
  0 siblings, 0 replies; 3+ messages in thread
From: Muli Ben-Yehuda @ 2004-01-13  9:48 UTC (permalink / raw)
  To: Sirotkin, Alexander; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

On Tue, Jan 13, 2004 at 10:49:56AM +0200, Sirotkin, Alexander wrote:

> I've seen a couple of drivers (for instance - e100) using fragmented skb 
> on transmit path.
> I was wondering, how one can do the same on receive  ?

How? build a fragmented skb on the receive path and send it
upwards. Last I looked at the relevant code (2.4.something), however,
the tcp/ip stack called skb_linearize() on the skb on its way up, so
you wouldn't gain anything unless you teach it to deal with fragmented
skb's all the way up. That's just what I recall - this subject was
discussed several times in the past, look in the archives for details.

Cheers, 
Muli 
-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

"the nucleus of linux oscillates my world" - gccbot@#offtopic


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: skb fragmentation
       [not found] ` <1dtvl-1w4-5@gated-at.bofh.it>
@ 2004-01-13 10:10   ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2004-01-13 10:10 UTC (permalink / raw)
  To: Muli Ben-Yehuda; +Cc: demiurg, linux-kernel

Muli Ben-Yehuda <mulix@mulix.org> writes:

> How? build a fragmented skb on the receive path and send it
> upwards. Last I looked at the relevant code (2.4.something), however,
> the tcp/ip stack called skb_linearize() on the skb on its way up, so

Actually the main protocols (TCP,UDP,RAW) work with fragmented skbs. The
skb_linearize() users are mostly netfilter modules and some obscure
older protocols. Most of that has been fixed in 2.6.

-Andi

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

end of thread, other threads:[~2004-01-13 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13  8:49 skb fragmentation Sirotkin, Alexander
2004-01-13  9:48 ` Muli Ben-Yehuda
     [not found] <1dszh-7Gs-5@gated-at.bofh.it>
     [not found] ` <1dtvl-1w4-5@gated-at.bofh.it>
2004-01-13 10:10   ` Andi Kleen

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