From: David Miller <davem@davemloft.net>
To: paravpandit@yahoo.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: motive for sending Ethernet packets in soft-irq context
Date: Fri, 02 May 2008 04:23:38 -0700 (PDT) [thread overview]
Message-ID: <20080502.042338.83904533.davem@davemloft.net> (raw)
In-Reply-To: <989596.46222.qm@web30103.mail.mud.yahoo.com>
From: Parav Pandit <paravpandit@yahoo.com>
Date: Fri, 2 May 2008 02:16:07 -0700 (PDT)
[ Your question belongs on netdev, that's where the kernel
networking developers hang out, CC:'d ]
> What I understand is,
> It is not done into the process context of send() system call beacause,
Where did you obtain this understanding? It's not accurate :-)
It is actually done in the send() system call thread of execution most
of the time. soft-irqs are simply disabled during the
->hard_start_xmit() driver call so that input packet processing cannot
execute on the local cpu while this happens.
However, many packets are sent in response to received
packets. In this case, since receive packets are
processed in soft-irq context, the response will be
sent in such a context too.
This applies for TCP data queued up waiting for the congestion
window or TCP window to open up. When an ACK arrives which
satisfies the necessary conditions, queued up socket
data packets are send, again in soft-irq context.
So whether we send to the network card in soft-irq context
or not is entirely situation dependent.
next prev parent reply other threads:[~2008-05-02 11:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 9:16 Parav Pandit
2008-05-02 11:23 ` David Miller [this message]
2008-05-02 10:52 Parav Pandit
2008-05-02 11:28 ` David Miller
2008-05-02 12:11 ` Parav Pandit
2008-05-02 12:16 ` David Miller
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=20080502.042338.83904533.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paravpandit@yahoo.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
all inboxes | Powered by JetHome®