Date: Sun, 9 Mar 2008 19:56:43 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 137250 for review Message-ID: <200803091956.m29JuhlM063392@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137250 Change 137250 by rwatson@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803091956.m29JuhlM063392>