[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <45E02445.8020202@trango-systems.com>
Date: Sat, 24 Feb 2007 12:40:53 +0100
From: Cyprien LAPLACE <cyprien.laplace@...ngo-systems.com>
To: kalash nainwal <nirvana.code@...il.com>
CC: netdev@...r.kernel.org, linux-net@...r.kernel.org
Subject: Re: Is the TCP-code threaded?
kalash nainwal wrote:
> On 2/24/07, Kristian Evensen <kristrev@....uio.no> wrote:
>> Hello,
>>
>> I have been looking quite deeply into the TCP-code, but there is one
>> thing I simply dont manage to understand. Can the code process more than
>> one skb on a socket at the time, or is it strictly one and one?
>>
>> E.g say that you are going to send something (an skb), and you recieve
>> an ack at the same time. Will the kernel finish whatever of the two
>> comes first (say, finish sending) or can it, in the middle of treating
>> the new packet to send, do a switch and process the ack?
>>
> send happes in process context, recv in interrupt context...isn't it?
Hum, except if sending is delayed because of lack of windows, waiting
for ack etc. In this case, sending may be delayed to soft-irq and
single-threaded with reception (data are processed in soft-irq)..
Is this correct ?
Cyprien
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists