netdev
[Top] [All Lists]

Re: Questions about the tcp code in 2.4.9

To: chuckw@xxxxxxxx
Subject: Re: Questions about the tcp code in 2.4.9
From: Andi Kleen <ak@xxxxxx>
Date: Tue, 21 Aug 2001 13:39:44 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20010820131924.A12155@ieee.org>; from chuckw@ieee.org on Mon, Aug 20, 2001 at 07:19:24PM +0200
References: <20010820131924.A12155@ieee.org>
Sender: owner-netdev@xxxxxxxxxxx
On Mon, Aug 20, 2001 at 07:19:24PM +0200, chuckw@xxxxxxxx wrote:
> Hello All,
>       I have 2 questions.  They may seem stupid, but the guys over at 
> kernelnewbies said
> you guys would know the answers to these.
>       1)  on line 1054 of tcp.c it seems that the sock buffer is being added 
> to the 
>           front of the write queue. 
>                               If my observation is correct ? why : what is 
> happening

The tcp write queue is a ring and prev of the is head is the back. 

> 
>       2)  when an iovec is written to the sock buffer, it looks like the 
> whole iovec
>           is written into the same sock buffer.  Is that correct?

Not necessarily. It can be split over multiple skbs when needed.

-Andi

<Prev in Thread] Current Thread [Next in Thread>