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
This commit is contained in:
parent
161832a1cf
commit
ffeeb9241a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189620
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user