lkml.org 
[lkml]   [2001]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsk_buff in 2.4.0

Hi,
As far as I understand, in 2.2.x networking code the protocol
header and data used to reside in a contiguous region in memory(pointed
to by the head, data, tail, end of sk_buff struct),
ie skb->data is the starting point and skb->tail is the ending point.

| |
| |
skb->data -- |-------------- |
| |
| |
| |
| |
| |
skb->tail -- |---------------|
| |

And the device drivers used to transfer from skb->data to
skb->tail(==skb->len).

My question is: Is the state of the art same in 2.4.0, ie. is
protocol header and data still has to reside contiguously? Or header and
data may be non-contiguous and the driver does scatter/gather.

I am starting off in 2.4.0 , plz. help.

--
sourav
--------------------------------------------------------------------------------
SOURAV SEN MSc(Engg.) CSA IISc BANGALORE URL : www2.csa.iisc.ernet.in/~sourav
ROOM NO : N-78 TEL :(080)309-2454(HOSTEL) (080)309-2906 (COMP LAB)
--------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.117 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site