svn commit: r189286 - head/sys/net
Christian S.J. Peron
csjp at FreeBSD.org
Mon Mar 2 11:42:03 PST 2009
Author: csjp
Date: Mon Mar 2 19:42:01 2009
New Revision: 189286
URL: http://svn.freebsd.org/changeset/base/189286
Log:
Switch the default buffer mode in bpf(4) to zero-copy buffers.
Discussed with: rwatson
Modified:
head/sys/net/bpf.c
Modified: head/sys/net/bpf.c
==============================================================================
--- head/sys/net/bpf.c Mon Mar 2 19:00:41 2009 (r189285)
+++ head/sys/net/bpf.c Mon Mar 2 19:42:01 2009 (r189286)
@@ -124,7 +124,7 @@ SYSCTL_NODE(_net, OID_AUTO, bpf, CTLFLAG
int bpf_maxinsns = BPF_MAXINSNS;
SYSCTL_INT(_net_bpf, OID_AUTO, maxinsns, CTLFLAG_RW,
&bpf_maxinsns, 0, "Maximum bpf program instructions");
-static int bpf_zerocopy_enable = 0;
+static int bpf_zerocopy_enable = 1;
SYSCTL_INT(_net_bpf, OID_AUTO, zerocopy_enable, CTLFLAG_RW,
&bpf_zerocopy_enable, 0, "Enable new zero-copy BPF buffer sessions");
SYSCTL_NODE(_net_bpf, OID_AUTO, stats, CTLFLAG_RW,
More information about the svn-src-head
mailing list