From owner-freebsd-net@FreeBSD.ORG Wed Nov 14 15:47:44 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF48F99B; Wed, 14 Nov 2012 15:47:44 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 08C7F8FC13; Wed, 14 Nov 2012 15:47:43 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id qAEFlgnX031731; Wed, 14 Nov 2012 19:47:42 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id qAEFlfYO031730; Wed, 14 Nov 2012 19:47:41 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 14 Nov 2012 19:47:41 +0400 From: Gleb Smirnoff To: "Alexander V. Chernikov" Subject: Re: [CFT] ipfw SMP-ready dynamic states Message-ID: <20121114154741.GE29772@nginx.com> References: <50A29F57.6090701@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <50A29F57.6090701@yandex-team.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ipfw@FreeBSD.org, Luigi Rizzo , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 15:47:44 -0000 On Tue, Nov 13, 2012 at 11:28:23PM +0400, Alexander V. Chernikov wrote: A> So, we can do the following: A> 1) lock increments/decrements via some separate mutex A> 2) do nothing A> 3) take some combined approach: 4) Take it via uma_zone_getcur(ipfw_dyn_rule_zone); -- Totus tuus, Glebius.