Re: [PATCH RT] ehea: make receive irq handler non-threaded (IRQF_NODELAY)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Wednesday, May 19, 2010 - 2:08 pm

On Wed, 19 May 2010, Thomas Gleixner wrote:

Thought more about that. The case at hand (ehea) is nasty:

The driver does _NOT_ disable the rx interrupt in the card in the rx
interrupt handler - for whatever reason.

 So even in mainline you get repeated rx interrupts when packets
 arrive while napi is processing the poll, which is suboptimal at
 least. In fact it is counterproductive as the whole purpose of NAPI
 is to _NOT_ get interrupts for consecutive incoming packets while the
 poll is active.

Most of the other network drivers do:

      rx_irq()
	disable rx interrupts on card
	napi_schedule()

Now when the napi poll is done (no more packets available) then the
driver reenables the rx interrupt on the card.

Thanks,

	tglx
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RT] ehea: make receive irq handler non-threaded ..., Thomas Gleixner, (Wed May 19, 2:08 pm)
Re: [PATCH RT] ehea: make receive irq handler non-threaded ..., Jan-Bernd Themann, (Thu May 20, 12:37 am)
Re: [PATCH RT] ehea: make receive irq handler non-threaded ..., Jan-Bernd Themann, (Thu May 20, 2:05 am)
Re: [PATCH RT] ehea: make receive irq handler non-threaded ..., Jan-Bernd Themann, (Mon Sep 20, 7:26 am)