summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2009-03-10 14:28:19 +0000
committercsjp <csjp@FreeBSD.org>2009-03-10 14:28:19 +0000
commit274c597d1c0c3db6aa964926e77f0ff4ea103d81 (patch)
treea4e181d892175860bea317c457de3da905e9317b /sys
parent883949a1244b1241e1b2f6b7ddafec55fac138bc (diff)
downloadFreeBSD-src-274c597d1c0c3db6aa964926e77f0ff4ea103d81.zip
FreeBSD-src-274c597d1c0c3db6aa964926e77f0ff4ea103d81.tar.gz
Disable zerocopy by default for now. It's causing some problems in pcap
consumers which fork after the shared pages have been setup. pflogd(8) is an example. The problem is understood and there is a fix coming in shortly. Folks who want to continue using it can do so by setting net.bpf.zerocopy_enable to 1. Discussed with: rwatson
Diffstat (limited to 'sys')
-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 f8f605b..5a28e69 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 = 1;
+static int bpf_zerocopy_enable = 0;
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_MPSAFE | CTLFLAG_RW,
OpenPOWER on IntegriCloud