From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH net-next] netfilter: nf_conntrack.h: use this_cpu_inc() Date: Thu, 19 Apr 2012 20:16:00 +0200 Message-ID: <20120419181600.GA17878@1984> References: <1334723800.2472.88.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel , netdev , Christoph Lameter , Tejun Heo , Patrick McHardy , Netfilter Development Mailing list To: Eric Dumazet Return-path: Content-Disposition: inline In-Reply-To: <1334723800.2472.88.camel@edumazet-glaptop> Sender: linux-kernel-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org On Wed, Apr 18, 2012 at 06:36:40AM +0200, Eric Dumazet wrote: > From: Eric Dumazet > > this_cpu_inc() is IRQ safe and faster than > local_bh_disable()/__this_cpu_inc()/local_bh_enable(), at least on x86. > > Signed-off-by: Eric Dumazet > Cc: Patrick McHardy > Cc: Christoph Lameter > Cc: Tejun Heo Applied, thanks.