On Monday 01 August 2005 06:30, Amos Shapira wrote: > I'm just intrigued by this - how feasable would it be to write a driver > (and have support in the device hardware) that uses interrupts but > switches to NAPI when the input rate peaks, then switches back to > interrupts when the rate drops again?
That's how NAPI is meant to work. The driver notifies the stack via rx_schedule() that it should schedule another poll. When the driver want to return to the normal interrupt-per-packet mode, it should program the hardware accordingly and call rx_complete() instead of rx_schedule(). -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron ICQ UIN: 16527398 "Microsoft: We make virii work!" ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
