From: Parav Pandit <paravpandit@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: motive for sending Ethernet packets in soft-irq context
Date: Fri, 2 May 2008 02:16:07 -0700 (PDT) [thread overview]
Message-ID: <989596.46222.qm@web30103.mail.mud.yahoo.com> (raw)
Hi,
What is the motive to send the ethernet packets to the NIC driver by invoking hard_xmit() in the soft-irq context?
What I understand is,
It is not done into the process context of send() system call beacause,
1. Calling it in soft-irq context eliminates any delays incurred by the process switching, lower task priorities etc.
Can't it be done by raising the process priority to highest until the NIC driver hand over the packet to the hardware?
This will avoid time incurred in process to soft-irq switching time.
Are there any other performance, security reasons?
Regards,
Parav Pandit
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
next reply other threads:[~2008-05-02 9:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 9:16 Parav Pandit [this message]
2008-05-02 11:23 ` motive for sending Ethernet packets in soft-irq context David Miller
-- strict thread matches above, loose matches on Subject: below --
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=989596.46222.qm@web30103.mail.mud.yahoo.com \
--to=paravpandit@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/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