PERFORCE change 137250 for review

Robert Watson rwatson at FreeBSD.org
Sun Mar 9 19:56:44 UTC 2008


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

Change 137250 by rwatson at rwatson_cinnamon on 2008/03/09 19:55:49

	Don't expose selection of a "default" via bpf.h where userspace
	or other parts might find it -- selection of a default for new
	BPF devices is in the kernel BPF implementation when the new
	device is created.

Affected files ...

.. //depot/projects/zcopybpf/src/sys/net/bpf.c#45 edit
.. //depot/projects/zcopybpf/src/sys/net/bpf.h#23 edit

Differences ...

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

@@ -562,7 +562,7 @@
 	 * particular buffer method.
 	 */
 	bpf_buffer_init(d);
-	d->bd_bufmode = BPF_BUFMODE_DEFAULT;
+	d->bd_bufmode = BPF_BUFMODE_BUFFER;
 	d->bd_sig = SIGIO;
 	d->bd_direction = BPF_D_INOUT;
 	d->bd_pid = td->td_proc->p_pid;

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

@@ -103,8 +103,6 @@
 #define	BPF_BUFMODE_BUFFER	1	/* Kernel buffers with read(). */
 #define	BPF_BUFMODE_ZBUF	2	/* Zero-copy buffers. */
 
-#define	BPF_BUFMODE_DEFAULT	BPF_BUFMODE_BUFFER	/* Default. */
-
 /*-
  * Struct used by BIOCSETZBUF, BIOCROTZBUF: describes up to two zero-copy
  * buffer as used by BPF.


More information about the p4-projects mailing list