Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2007 17:50:15 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Andrew Gallatin <gallatin@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net pfil.h
Message-ID:  <20070608135015.GP89017@FreeBSD.org>
In-Reply-To: <200706081243.l58ChQnr045086@repoman.freebsd.org>
References:  <200706081243.l58ChQnr045086@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070608135015.GP89017>