public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* motive for sending Ethernet packets in soft-irq context
@ 2008-05-02 10:52 Parav Pandit
  2008-05-02 11:28 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Parav Pandit @ 2008-05-02 10:52 UTC (permalink / raw)
  To: Linux kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* motive for sending Ethernet packets in soft-irq context
@ 2008-05-02  9:16 Parav Pandit
  2008-05-02 11:23 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Parav Pandit @ 2008-05-02  9:16 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-02 12:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 10:52 motive for sending Ethernet packets in soft-irq context Parav Pandit
2008-05-02 11:28 ` David Miller
2008-05-02 12:11   ` Parav Pandit
2008-05-02 12:16     ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2008-05-02  9:16 Parav Pandit
2008-05-02 11:23 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox