PERFORCE change 114167 for review

Robert Watson rwatson at FreeBSD.org
Wed Feb 7 11:18:54 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=114167

Change 114167 by rwatson at rwatson_cinnamon on 2007/02/07 11:17:32

	Annotate an inter-thread race during bpf_setif.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf.c#16 edit

Differences ...

==== //depot/projects/zcopybpf/src/sys/net/bpf.c#16 (text+ko) ====

@@ -1407,6 +1407,9 @@
 	 * buffers by the time we get here.  If not, return an error.
 	 *
 	 * XXXRW: Could this be better abstracted?
+	 *
+	 * XXXRW: There are locking issues here with multi-threaded use: what
+	 * if two threads try to set the interface at once?
 	 */
 	switch (d->bd_bufmode) {
 	case BPF_BUFMODE_BUFFER:


More information about the p4-projects mailing list