motive for sending Ethernet packets in soft-irq context
Hi,
What is the motive behind sending 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
You did not have to posting this question a second time, we saw your first posting. Every time you post to this list, several thousand people get another email.
Thank you.
Sorry for the mistake.
First time I was not subscribed, so it didn't come to my mailbox and sent again. I'll take care henceforth.
Regards,
Parav Pandit
Quoted 9 lines · David Miller
From: David Miller <[email protected]>
Subject: Re: motive for sending Ethernet packets in soft-irq context
To: [email protected]
Cc: [email protected]
Date: Friday, May 2, 2008, 4:58 PM
You did not have to posting this question a second
time, we saw your first posting. Every time you post
to this list, several thousand people get another email.
Quoted 8 lines
Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
From: Parav Pandit <[email protected]>
Date: Fri, 2 May 2008 05:11:48 -0700 (PDT)
Quoted 2 lines
First time I was not subscribed, so it didn't come to my mailbox and sent again.
You do not need to be subscribed to this mailing list, or any mailing list at vger.kernel.org, in order to post messages to them.
If all you need is a simple answer to a question, or have a bug to report, but otherwise have no interest in reading the hundreds and hudreds of postings linux-kernel has every day, it's often better to not subscribe.