From: Robert Olsson <Robert.Olsson@data.slu.se> Date: Sat, 8 Sep 2007 09:53:49 +0200The tx_cleaned logic change was not intentional, and that's the bug that makes e1000 spin endlessly in NAPI. The other part, the work_done < budget part, was intentional so I'm going to keep it in there for now. I've checked in the patch below to deal with this. I suspect the check "work_done == 0" is some shamans dance to get slightly better performance, but it's 1) wrong and 2) at best needs to be explained in a comment and fully quantified. From e8cbb449155000eecc6e855ea71510fecfc7d5ee Mon Sep 17 00:00:00 2001 From: David S. Miller <davem@kimchee.(none)> Date: Wed, 12 Sep 2007 16:50:32 +0200 Subject: [PATCH] [E1000]: Fix unintended NAPI breakout logic change. The inversion of the !tx_cleaned test in e1000_clean() was not intentional, we just wanted to change the "work_done == 0" to "work_done < budget" Noticed by Robert Olsson. Signed-off-by: David S. Miller <davem@davemloft.net> --- drivers/net/e1000/e1000_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 7b0bcdb..58bb758 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c @@ -3944,7 +3944,7 @@ e1000_clean(struct napi_struct *napi, int budget) &work_done, budget); /* If no Tx and not enough Rx work done, exit the polling mode */ - if ((tx_cleaned && (work_done < budget)) || + if ((!tx_cleaned && (work_done < budget)) || !netif_running(poll_dev)) { quit_polling: if (likely(adapter->itr_setting & 3)) -- 1.5.2.4 - 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
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Brice Goglin | Re: Linux 2.6.21-rc2 |
| Christian Volkmann | 2.6.23-rc6: usb 1-1: device not accepting address 2, error -62 |
git: | |
| Jon Smirl | Re: VCS comparison table |
| Nicolas Pitre | Re: git to libgit2 code relicensing |
| Giuseppe Bilotta | [PATCHv3 0/4] gitweb: remote heads feature |
| Mark Burton | Git commit won't add an untracked file given on the command line |
| Nick Guenther | Re: Real men don't attack straw men |
| Tanvir | Re: Adobe Flash on OpenBSD |
| Marius ROMAN | 1440x900 resolution problem |
| Gilles Chehade | Re: wpi (4) and 4.4 |
| Johann Baudy | Re: [PATCH] Packet socket: mmapped IO: PACKET_TX_RING |
| Volker Armin Hemmann | build error with 2.6.27.6+reiser4+ehci-hub patch. ERROR: "mii_ethtool_gset" [drive... |
| Patrick Ohly | [RFC PATCH 00/13] hardware time stamping + igb example implementation |
| Laszlo Attila Toth | [PATCHv7 3/5] Interface group: core (netlink) part |
