Re: Stop using tasklets for bottom halves

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Tuesday, September 8, 2009 - 10:27 am

[ added Thomas Gleixner to Cc]

On Tue, 2009-09-08 at 10:01 -0700, Stephen Hemminger wrote:

That sounds exactly like what threaded IRQs will do. When an interrupt
comes in, the device driver will disable the device interrupts, and then
the device irq thread handler is awoken.

The device irq handler will handle all the packets. If new packets come
in, and the hardware ring buffer is full, those packets will be dropped.
When the irq handler thread is done processing all pending packets, it
will re-enable the device's interrupts and go to sleep.

Yeah, looking at the NAPI code, it does seem to follow what threaded
interrupts do.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Stop using tasklets for bottom halves, Luis R. Rodriguez, (Mon Sep 7, 3:58 pm)
Re: Stop using tasklets for bottom halves, Stephen Hemminger, (Mon Sep 7, 5:14 pm)
Re: Stop using tasklets for bottom halves, Steven Rostedt, (Mon Sep 7, 7:17 pm)
Re: Stop using tasklets for bottom halves, Luis R. Rodriguez, (Mon Sep 7, 9:16 pm)
Re: Stop using tasklets for bottom halves, Michael Buesch, (Mon Sep 7, 9:50 pm)
Re: Stop using tasklets for bottom halves, Michael Buesch, (Mon Sep 7, 10:08 pm)
Re: Stop using tasklets for bottom halves, Ingo Molnar, (Tue Sep 8, 12:10 am)
Re: Stop using tasklets for bottom halves, Steven Rostedt, (Tue Sep 8, 6:18 am)
Re: Stop using tasklets for bottom halves, Stephen Hemminger, (Tue Sep 8, 9:11 am)
Re: Stop using tasklets for bottom halves, Stephen Hemminger, (Tue Sep 8, 9:12 am)
Re: Stop using tasklets for bottom halves, Steven Rostedt, (Tue Sep 8, 9:40 am)
Re: Stop using tasklets for bottom halves, Stephen Hemminger, (Tue Sep 8, 10:01 am)
Re: Stop using tasklets for bottom halves, Steven Rostedt, (Tue Sep 8, 10:27 am)