Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/npf NPF: use BPF JIT by default.



details:   https://anonhg.NetBSD.org/src/rev/a05c21aac2c1
branches:  trunk
changeset: 330224:a05c21aac2c1
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Jun 30 00:01:23 2014 +0000

description:
NPF: use BPF JIT by default.

diffstat:

 sys/net/npf/npf_bpf.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r f737c380c335 -r a05c21aac2c1 sys/net/npf/npf_bpf.c
--- a/sys/net/npf/npf_bpf.c     Sun Jun 29 23:21:28 2014 +0000
+++ b/sys/net/npf/npf_bpf.c     Mon Jun 30 00:01:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_bpf.c,v 1.9 2014/06/29 00:05:24 rmind Exp $        */
+/*     $NetBSD: npf_bpf.c,v 1.10 2014/06/30 00:01:23 rmind Exp $       */
 
 /*-
  * Copyright (c) 2009-2013 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_bpf.c,v 1.9 2014/06/29 00:05:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_bpf.c,v 1.10 2014/06/30 00:01:23 rmind Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -127,11 +127,7 @@
 void *
 npf_bpf_compile(void *code, size_t size)
 {
-#if 0
        return bpf_jit_generate(npf_bpfctx, code, size);
-#else
-       return NULL;
-#endif
 }
 
 bool



Home | Main Index | Thread Index | Old Index