From: Cyprien LAPLACE <cyprien.laplace@trango-systems.com>
To: kalash nainwal <nirvana.code@gmail.com>
Cc: netdev@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: Is the TCP-code threaded?
Date: Sat, 24 Feb 2007 12:40:53 +0100 [thread overview]
Message-ID: <45E02445.8020202@trango-systems.com> (raw)
In-Reply-To: <e92e3a770702240129w14dc8f2oa4b3e99f423f4704@mail.gmail.com>
kalash nainwal wrote:
> On 2/24/07, Kristian Evensen <kristrev@ifi.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
prev parent reply other threads:[~2007-02-24 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-23 23:38 Is the TCP-code threaded? Kristian Evensen
2007-02-24 9:29 ` kalash nainwal
2007-02-24 11:40 ` Cyprien LAPLACE [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45E02445.8020202@trango-systems.com \
--to=cyprien.laplace@trango-systems.com \
--cc=linux-net@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nirvana.code@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).