cvs commit: src/sys/net bpf.c
rwatson at FreeBSD.org
Wed Aug 4 20:25:07 PDT 2004
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.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org Principal Research Scientist, McAfee Research
More information about the cvs-all