From owner-cvs-src@FreeBSD.ORG Fri Jun 8 13:50:18 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0754216A400; Fri, 8 Jun 2007 13:50:18 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.130]) by mx1.freebsd.org (Postfix) with ESMTP id 7E55913C455; Fri, 8 Jun 2007 13:50:17 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.1/8.14.1) with ESMTP id l58DoFRG089562; Fri, 8 Jun 2007 17:50:15 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.1/8.14.1/Submit) id l58DoFGU089561; Fri, 8 Jun 2007 17:50:15 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 8 Jun 2007 17:50:15 +0400 From: Gleb Smirnoff To: Andrew Gallatin Message-ID: <20070608135015.GP89017@FreeBSD.org> References: <200706081243.l58ChQnr045086@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200706081243.l58ChQnr045086@repoman.freebsd.org> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net pfil.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 13:50:18 -0000 On Fri, Jun 08, 2007 at 12:43:26PM +0000, Andrew Gallatin wrote: A> gallatin 2007-06-08 12:43:26 UTC A> A> FreeBSD src repository A> A> Modified files: A> sys/net pfil.h A> Log: A> Correct the definition of PFIL_HOOKED() so that it compares A> the value of ph_nhooks to zero, not the address. This removes A> extranious calls to pfil_run_hooks (and an rw lock) from the A> network stack's critical path when no pfil hooks are active. A> A> Reviewed by: csjp A> Sponsored by: Myricom Inc. Nice! I guess you can tell how much performance did we lose before? Do you plan to MFC this? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE