Date: Thu, 5 Aug 2004 02:37:36 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net bpf.c Message-ID: <200408050237.i752baAT049513@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. Revision Changes Path 1.132 +21 -0 src/sys/net/bpf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408050237.i752baAT049513>