Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756301AbXLKXWT (ORCPT ); Tue, 11 Dec 2007 18:22:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751800AbXLKXWD (ORCPT ); Tue, 11 Dec 2007 18:22:03 -0500 Received: from mga11.intel.com ([192.55.52.93]:46058 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750772AbXLKXWA convert rfc822-to-8bit (ORCPT ); Tue, 11 Dec 2007 18:22:00 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.24,154,1196668800"; d="scan'208";a="433263321" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Subject: RE: [PATCH] [NET]: Fix Ooops of napi net_rx_action. Date: Tue, 11 Dec 2007 15:12:10 -0800 Message-ID: <36D9DB17C6DE9E40B059440DB8D95F5203F82FC3@orsmsx418.amr.corp.intel.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] [NET]: Fix Ooops of napi net_rx_action. Thread-Index: Acg79Z2CnMCJ22PpQSmogZPrVB0yUAAVO4Lw References: <001801c83bd6$2001d410$9c94fea9@jason> <20071211.023218.31965443.davem@davemloft.net> From: "Brandeburg, Jesse" To: "Joonwoo Park" , "David Miller" Cc: , , , "Kok, Auke-jan H" X-OriginalArrivalTime: 11 Dec 2007 23:12:10.0866 (UTC) FILETIME=[4210A520:01C83C4B] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 24 Joonwoo Park wrote: > /* If no Tx and not enough Rx work done, exit the polling mode */ > if ((!tx_cleaned && (work_done == 0)) || > !netif_running(poll_dev)) { > quit_polling: > if (likely(adapter->itr_setting & 3)) > e1000_set_itr(adapter); > netif_rx_complete(poll_dev, napi); > e1000_irq_enable(adapter); all drivers using NAPI in 2.6.24+ (NNAPI??) must return zero here, after calling netif_rx_complete. netif_rx_complete plus work_done != 0 causes a bug. > } > > return work_done; > } > -- 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/