From owner-cvs-src@FreeBSD.ORG Mon Dec 19 19:14:38 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C079F16A41F; Mon, 19 Dec 2005 19:14:38 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id A537043D53; Mon, 19 Dec 2005 19:14:35 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id jBJJQYZW044287; Mon, 19 Dec 2005 14:26:34 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Jeremie Le Hen Date: Mon, 19 Dec 2005 14:13:46 -0500 User-Agent: KMail/1.6.2 References: <200512060258.jB62wCnk084452@repoman.freebsd.org> <20051219183835.GC3512@obiwan.tataz.chchile.org> In-Reply-To: <20051219183835.GC3512@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Message-Id: <200512191413.52731.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV devel-20050919/1213/Mon Dec 19 09:48:34 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/amd64/amd64 bpf_jit_machdep.c bpf_jit_machdep.h src/sys/conf files files.amd64 files.i386 options.amd64 options.i386 src/sys/i386/i386 bpf_jit_machdep.c bpf_jit_machdep.h src/sys/net bpf.c bpf_jitter.c bpf_jitter.h bpfdesc.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 19:14:38 -0000 On Monday 19 December 2005 01:38 pm, Jeremie Le Hen wrote: > Hi, Jung-uk, > > On Tue, Dec 06, 2005 at 02:58:12AM +0000, Jung-uk Kim wrote: > > jkim 2005-12-06 02:58:12 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/conf files files.amd64 files.i386 > > options.amd64 options.i386 > > sys/net bpf.c bpfdesc.h > > Added files: > > sys/amd64/amd64 bpf_jit_machdep.c bpf_jit_machdep.h > > sys/i386/i386 bpf_jit_machdep.c bpf_jit_machdep.h > > sys/net bpf_jitter.c bpf_jitter.h > > Log: > > Add experimental BPF Just-In-Time compiler for amd64 and i386. > > > > Use the following kernel configuration option to enable: > > > > options BPF_JITTER > > > > If you want to use bpf_filter() instead (e. g., debugging), do: > > > > sysctl net.bpf.jitter.enable=0 > > > > to turn it off. > > > > Currently BIOCSETWF and bpf_mtap2() are unsupported, and > > bpf_mtap() is partially supported because 1) no need, 2) avoid > > expensive m_copydata(9). > > > > Obtained from: WinPcap 3.1 (for i386) > > Though the name looks quite exciting, I don't really know what it > is. I tried to look on WinPcap's website as well as searching on > Google, but found nothing relevant. Could you explain in a few > words what it is and the difference with the old bpf(4) behaviour, > please ? BPF JIT compiler converts BPF instructions into native machine code when BIOCSETF ioctl is issued, and then the native filter is used to filter packets instead of bpf_filter(), which is a simple virtual machine. > Does this change will lead to a new note in bpf(4) manual > page once it won't be experimental any more ? Yes. Maybe bpf(9), too. Jung-uk Kim