From owner-cvs-src@FreeBSD.ORG Fri Jun 8 12:43:27 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 F393C16A41F; Fri, 8 Jun 2007 12:43:26 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id CBC8713C458; Fri, 8 Jun 2007 12:43:26 +0000 (UTC) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l58ChQ0U045098; Fri, 8 Jun 2007 12:43:26 GMT (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l58ChQnr045086; Fri, 8 Jun 2007 12:43:26 GMT (envelope-from gallatin) Message-Id: <200706081243.l58ChQnr045086@repoman.freebsd.org> From: Andrew Gallatin Date: Fri, 8 Jun 2007 12:43:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 12:43:27 -0000 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