Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765258AbXLMTfv (ORCPT ); Thu, 13 Dec 2007 14:35:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756313AbXLMTfj (ORCPT ); Thu, 13 Dec 2007 14:35:39 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:43236 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754915AbXLMTfi (ORCPT ); Thu, 13 Dec 2007 14:35:38 -0500 Message-ID: <4761896B.7070801@linux-foundation.org> Date: Thu, 13 Dec 2007 11:35:07 -0800 From: Stephen Hemminger Organization: Linux Foundation User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: David Miller CC: gallatin@myri.com, joonwpark81@gmail.com, auke-jan.h.kok@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jgarzik@pobox.com, jesse.brandeburg@intel.com Subject: Re: [RFC] net: napi fix References: <20071213.061938.86541759.davem@davemloft.net> <20071213102233.3727e9a0@freepuppy.rosehill> <476181C1.3060204@myri.com> <20071213.110928.26060224.davem@davemloft.net> In-Reply-To: <20071213.110928.26060224.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 21 David Miller wrote: > From: Andrew Gallatin > Date: Thu, 13 Dec 2007 14:02:25 -0500 > > >> Or perhaps we should just leave things as is. >> > > We should probably add a "disabling" state bit to the > napi struct flags, this will be set by napi_disable() > before it loops trying to set the sched bit. > > net_rx_action() can then check this. > How about allowing a return value of -1 from napi_poll and letting device check itself. -- 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/