summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2009-03-02 19:42:01 +0000
committercsjp <csjp@FreeBSD.org>2009-03-02 19:42:01 +0000
commit59b707a4088dcbed0e291bb0f6a50159053fd9e6 (patch)
tree9ba335667dd4e81dbb8e6a3f76a0c6424fc2170a /sys/net/bpf.c
parentdac11360f1f6bc0d720a3b9083fe037c2bcb6d74 (diff)
downloadFreeBSD-src-59b707a4088dcbed0e291bb0f6a50159053fd9e6.zip
FreeBSD-src-59b707a4088dcbed0e291bb0f6a50159053fd9e6.tar.gz
Switch the default buffer mode in bpf(4) to zero-copy buffers.
Discussed with: rwatson
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 3a7ec7f..8a0b1ae 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -124,7 +124,7 @@ SYSCTL_NODE(_net, OID_AUTO, bpf, CTLFLAG_RW, 0, "bpf sysctl");
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,
OpenPOWER on IntegriCloud