cvs commit: src/sys/net pfil.h

Andrew Gallatin gallatin at FreeBSD.org
Fri Jun 8 12:43:27 UTC 2007


gallatin    2007-06-08 12:43:26 UTC

  FreeBSD src repository

  Modified files:
    sys/net              pfil.h 
  Log:
  Correct the definition of PFIL_HOOKED() so that it compares
  the value of ph_nhooks to zero, not the address.  This removes
  extranious calls to pfil_run_hooks (and an rw lock) from the
  network stack's critical path when no pfil hooks are active.
  
  Reviewed by: csjp
  Sponsored by: Myricom Inc.
  
  Revision  Changes    Path
  1.16      +1 -1      src/sys/net/pfil.h


More information about the cvs-src mailing list