Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933334Ab3E1IDT (ORCPT ); Tue, 28 May 2013 04:03:19 -0400 Received: from mga02.intel.com ([134.134.136.20]:10404 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933282Ab3E1IDL (ORCPT ); Tue, 28 May 2013 04:03:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,756,1363158000"; d="scan'208";a="344235914" Message-ID: <51A464B9.5080106@linux.intel.com> Date: Tue, 28 May 2013 11:03:05 +0300 From: Eliezer Tamir User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Eric Dumazet CC: Dave Miller , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Jesse Brandeburg , Don Skidmore , e1000-devel@lists.sourceforge.net, Willem de Bruijn , Andi Kleen , HPA , Eilon Greenstien , Or Gerlitz , Alex Rosenbaum , Eliezer Tamir Subject: Re: [PATCH v5 net-next 1/5] net: add napi_id and hash References: <20130527074351.29882.51106.stgit@ladj378.jer.intel.com> <20130527074401.29882.98135.stgit@ladj378.jer.intel.com> <1369700905.3301.499.camel@edumazet-glaptop> In-Reply-To: <1369700905.3301.499.camel@edumazet-glaptop> Content-Type: text/plain; charset=UTF-8; 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: 946 Lines: 29 On 28/05/2013 03:28, Eric Dumazet wrote: > On Mon, 2013-05-27 at 10:44 +0300, Eliezer Tamir wrote: >> +extern void napi_hash_add(struct napi_struct *napi); >> + >> +/** >> + * napi_hash_del - remove a NAPI from blobal table > > global Thank you (my typing is almost as bad as my spelling, please don't tell my mom) >> @@ -166,6 +167,10 @@ static struct list_head offload_base __read_mostly; >> DEFINE_RWLOCK(dev_base_lock); >> EXPORT_SYMBOL(dev_base_lock); >> >> +atomic_t napi_gen_id; > > Not sure we need an atomic, we are protected by RTNL anyway. With an atomic we don't need the RTNL in any of the napi_id functions. One less thing to worry about when we try to remove the RTNL. -Eliezer -- 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/