From owner-cvs-src@FreeBSD.ORG Wed Jun 14 02:25:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39ED016A474; Wed, 14 Jun 2006 02:25:50 +0000 (UTC) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E845D43D46; Wed, 14 Jun 2006 02:25:49 +0000 (GMT) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5E2NSFY025425; Wed, 14 Jun 2006 02:23:28 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5E2NSJh025424; Wed, 14 Jun 2006 02:23:28 GMT (envelope-from csjp) Message-Id: <200606140223.k5E2NSJh025424@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Wed, 14 Jun 2006 02:23:28 +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 bpf.c bpf.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: Wed, 14 Jun 2006 02:25:50 -0000 csjp 2006-06-14 02:23:28 UTC FreeBSD src repository Modified files: sys/net bpf.c bpf.h Log: If bpf(4) has not been compiled into the kernel, initialize the bpf interface pointer to a zeroed, statically allocated bpf_if structure. This way the LIST_EMPTY() macro will always return true. This allows us to remove the additional unconditional memory reference for each packet in the fast path. Discussed with: sam Revision Changes Path 1.167 +5 -0 src/sys/net/bpf.c 1.45 +1 -1 src/sys/net/bpf.h