Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2009 14:28:19 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189620 - head/sys/net
Message-ID:  <200903101428.n2AESJ7m064487@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: csjp
Date: Tue Mar 10 14:28:19 2009
New Revision: 189620
URL: http://svn.freebsd.org/changeset/base/189620

Log:
  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

Modified:
  head/sys/net/bpf.c

Modified: head/sys/net/bpf.c
==============================================================================
--- head/sys/net/bpf.c	Tue Mar 10 12:10:50 2009	(r189619)
+++ head/sys/net/bpf.c	Tue Mar 10 14:28:19 2009	(r189620)
@@ -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 = 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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903101428.n2AESJ7m064487>