login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
7
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Yinghai Lu <yhlu.kernel@...>
To: Jeff Garzik <jeff@...>
Cc: <netdev@...>, Ayaz Abdulla <aabdulla@...>, LKML <linux-kernel@...>, Andrew Morton <akpm@...>
Subject:
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
Date: Sunday, October 7, 2007 - 12:43 am
On 10/6/07, Jeff Garzik <jeff@garzik.org> wrote:
quoted text
> > commit a606d2a111cdf948da5d69eb1de5526c5c2dafef > Author: Jeff Garzik <jeff@garzik.org> > Date: Fri Oct 5 22:56:05 2007 -0400 > > [netdrvr] forcedeth: interrupt handling cleanup > > * nv_nic_irq_optimized() and nv_nic_irq_other() were complete duplicates > of nv_nic_irq(), with the exception of one function call. Consolidate > all three into a single interrupt handler, deleting a lot of redundant > code. > > * greatly simplify irq handler locking. > > Prior to this change, the irq handler(s) would acquire and release > np->lock for each action (RX, TX, other events). > > For the common case -- RX or TX work -- the lock is always acquired, > making all successive acquire/release combinations largely redundant. > > Acquire the lock at the beginning of the irq handler, and release it at > the end of the irq handler. This is simple, easy, and obvious. > > * remove irq handler work loop. > > All interesting events emanating from the irq handler either have > their own work loops, or they poke a timer into action. > > Therefore, delete the pointless master interrupt handler work loop. > > Signed-off-by: Jeff Garzik <jgarzik@redhat.com> > > drivers/net/forcedeth.c | 325 +++++++++++------------------------------------- > 1 file changed, 77 insertions(+), 248 deletions(-) >
any chance to create three verion irq handlers for ioapic, msi, msi-x...? MACRO or inline function? YH -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/5] forcedeth: several proposed updates for testing
, Jeff Garzik
, (Sat Oct 6, 11:12 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Jeff Garzik
, (Sun Oct 7, 10:47 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Yinghai Lu
, (Sun Oct 7, 3:39 pm)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Jeff Garzik
, (Sun Oct 7, 4:05 pm)
[PATCH 6/n] forcedeth: protect slow path with mutex
, Jeff Garzik
, (Sun Oct 7, 7:23 am)
Re: [PATCH 6/n] forcedeth: protect slow path with mutex
, Jeff Garzik
, (Sun Oct 7, 10:40 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Ingo Molnar
, (Sun Oct 7, 5:08 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Jeff Garzik
, (Sun Oct 7, 7:34 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Jeff Garzik
, (Sat Oct 6, 11:24 am)
Re: [PATCH 0/5] forcedeth: several proposed updates for test...
, Jeff Garzik
, (Sat Oct 6, 11:17 am)
[PATCH 5/5] forcedeth: timer overhaul
, Jeff Garzik
, (Sat Oct 6, 11:15 am)
[PATCH 4/5] forcedeth: internal simplification and cleanups
, Jeff Garzik
, (Sat Oct 6, 11:14 am)
[PATCH 3/5] forcedeth: process TX completions using NAPI
, Jeff Garzik
, (Sat Oct 6, 11:14 am)
Re: [PATCH 3/5] forcedeth: process TX completions using NAPI
, Jeff Garzik
, (Sun Oct 7, 10:39 am)
[PATCH 2/5] forcedeth: interrupt handling cleanup
, Jeff Garzik
, (Sat Oct 6, 11:14 am)
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
, Ingo Molnar
, (Sun Oct 7, 5:03 am)
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
, Yinghai Lu
, (Sun Oct 7, 12:43 am)
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
, Jeff Garzik
, (Sun Oct 7, 7:40 am)
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
, Yinghai Lu
, (Sun Oct 7, 3:36 pm)
Re: [PATCH 2/5] forcedeth: interrupt handling cleanup
, Jeff Garzik
, (Sun Oct 7, 4:07 pm)
[PATCH 1/5] forcedeth: make NAPI unconditional
, Jeff Garzik
, (Sat Oct 6, 11:13 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
H. Peter Anvin
Re: [RFC 00/15] x86_64: Optimize percpu accesses
Greg Kroah-Hartman
[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Alex Chiang
[PATCH 1/4] Remove path attribute from sgi_hotplug
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [GIT]: Networking
Eric Dumazet
Re: [PATCH 3/3] Convert the UDP hash lock to RCU
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
733 guests
online.
Online users
cahometheater
Syndicate