From owner-cvs-all@FreeBSD.ORG Thu Aug 5 03:25:07 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABCE116A4D1; Thu, 5 Aug 2004 03:25:07 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CF7143D6D; Thu, 5 Aug 2004 03:25:07 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i753Nnfu022544; Wed, 4 Aug 2004 23:23:49 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i753NnuU022541; Wed, 4 Aug 2004 23:23:49 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 4 Aug 2004 23:23:49 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Brian Fundakowski Feldman In-Reply-To: <20040805030244.GB58239@green.homeunix.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net bpf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 03:25:07 -0000 On Wed, 4 Aug 2004, Brian Fundakowski Feldman wrote: > On Thu, Aug 05, 2004 at 02:37:36AM +0000, Robert Watson wrote: > > rwatson 2004-08-05 02:37:36 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/net bpf.c > > Log: > > Do a lockless read of the BPF interface structure descriptor list head > > before grabbing BPF locks to see if there are any entries in order to > > avoid the cost of locking if there aren't any. Avoids a mutex lock/ > > unlock for each packet received if there are no BPF listeners. > > While you're there, do you want to check out the other problems I've > been noticing, relating to consistency/locking? Yes. Can you e-mail me the pointer to your patch and/or p4 branch again? I'll try to look at it tomorrow. Thanks! Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research