Subject: Re: [patch 09/11] forcedeth: improve NAPI logic

From: Ayaz Abdulla <[email-masked]>
Date: Thu, 26 Apr 2007 10:53:04 -0400

Jeff Garzik wrote:
> Ayaz Abdulla wrote:
> 
>> I don't see why the NAPI handler needs to process tx packets. The ISR 
>> will handle all tx processing.
> 
> 
> It is a design choice, not a requirement.
> 
> Moving non-RX interrupt processing to the NAPI handler can help as loads 
> increase.  The basic idea is to do as much work as possible in the NAPI 
> handler with NIC interrupts masked.  That mitigates global system 
> per-interrupt overhead even more than an only-RX NAPI scheme.
> 
> Several net drivers do TX completion handling in the NAPI handler.

Ok. In that case, the patch needs to be improved.

The following needs to be done when NAPI is enabled:
- remove the tx handling within the ISRs
- mask off the tx interrupts within the ISRs that handle tx processing
- re-enable tx interrupts within the NAPI handler
- add tx handling within the NAPI handler (this patch covers it)

>     Jeff

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------