login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
16
Re: [patch] forcedeth: fix the NAPI poll function
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Ingo Molnar <mingo@...>
To: Jeff Garzik <jgarzik@...>
Cc: David Miller <davem@...>, <linux-kernel@...>, <torvalds@...>, <shemminger@...>
Subject:
Re: [patch] forcedeth: fix the NAPI poll function
Date: Tuesday, October 16, 2007 - 1:42 am
* Jeff Garzik <jgarzik@pobox.com> wrote:
quoted text
> Two comments: > > 1) we have a vague definition of "RX work processed." Due to error > conditions and goto's in that function, rx_processed_cnt may or may > not equal the number of packets actually processed. > > 2) man I dislike these inline C statement combinations (ranting at > original code style, not you). I would much rather waste a few extra > lines of source code and make the conditions obvious: > > while (... && (rx_processed_cnt < limit)) { > rx_processed_cnt++; > > ... > } > > or even > > while (1) { > ... > if (rx_processed_cnt == limit) > break; > rx_processed_cnt++; > } > > The compiler certainly doesn't care, and IMO it prevents bugs.
agreed. Do you have an uptodate patch/git-URI for the forcedeth rewrite you did? I can throw it into the testbed. Ingo -
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:
WARNING: at net/core/dev.c:2161 net_rx_action()
, Ingo Molnar
, (Mon Oct 15, 7:24 am)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, David Miller
, (Mon Oct 15, 3:57 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, Ingo Molnar
, (Mon Oct 15, 6:03 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, Jeff Garzik
, (Mon Oct 15, 6:20 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, David Miller
, (Mon Oct 15, 6:18 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, Ingo Molnar
, (Mon Oct 15, 6:07 pm)
[patch] forcedeth: fix the NAPI poll function
, Ingo Molnar
, (Mon Oct 15, 6:30 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Tue Oct 16, 5:20 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, Ingo Molnar
, (Wed Oct 17, 3:25 am)
[patch] forcedeth: fix the NAPI poll function, take #2
, Ingo Molnar
, (Wed Oct 17, 6:18 am)
Re: [patch] forcedeth: fix the NAPI poll function, take #2
, Jeff Garzik
, (Wed Oct 17, 8:21 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Mon Oct 15, 6:40 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, Ingo Molnar
, (Tue Oct 16, 1:42 am)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Tue Oct 16, 1:47 am)
Re: [patch] forcedeth: fix the NAPI poll function
, Ingo Molnar
, (Tue Oct 16, 2:40 am)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Tue Oct 16, 3:17 am)
Re: [patch] forcedeth: fix the NAPI poll function
, Ingo Molnar
, (Tue Oct 16, 3:49 am)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Tue Oct 16, 12:52 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, Jeff Garzik
, (Mon Oct 15, 6:41 pm)
Re: [patch] forcedeth: fix the NAPI poll function
, David Miller
, (Mon Oct 15, 6:39 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, David Miller
, (Mon Oct 15, 6:21 pm)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, Ingo Molnar
, (Mon Oct 15, 7:27 am)
Re: WARNING: at net/core/dev.c:2161 net_rx_action()
, Ingo Molnar
, (Mon Oct 15, 12:18 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Joerg Roedel
[PATCH 03/34] AMD IOMMU: add defines and structures for ACPI scanning code
Ingo Molnar
[patch 03/13] syslets: generic kernel bits
Greg KH
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
943 guests
online.
Online users
cbeltyml12
vgnfe
Syndicate