cvs commit: src/sys/net pfil.h

Gleb Smirnoff glebius at FreeBSD.org
Fri Jun 8 13:50:18 UTC 2007


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


More information about the cvs-src mailing list