Port-mips archive

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

Re: bpfjit



In article <20121124142253.GA2412@x1000.localdomain>,
Alexander Nasonov  <alnsn%yandex.ru@localhost> wrote:
>After a successful testing of bpfjit on an emulated MALTA board, I
>committed sljit support to evbmips. It's disabled my default but you
>can easily enable it. To reproduce my setup, you need to apply the patch
>below and build with MKSLJIT=yes.
>I followed an instruction on gxemul page to install and run my system
>under gxemul emulator. I also added "net.bpf.jit=1" to sysctl.conf
>while following an installation instruction.
>All sljit and bpfjit userspace tests pass and the system can filter
>packets using simple rules.
>
>Alex
>
>
>Enable bpfjit on MALTA ebvmips board.
>
>Index: sys/arch/evbmips/conf/MALTA
>===================================================================
>RCS file: /cvsroot/src/sys/arch/evbmips/conf/MALTA,v
>retrieving revision 1.69
>diff -p -u -u -r1.69 MALTA
>--- sys/arch/evbmips/conf/MALTA 17 Oct 2012 14:48:11 -0000      1.69
>+++ sys/arch/evbmips/conf/MALTA 24 Nov 2012 14:05:30 -0000
>@@ -307,6 +307,9 @@ audio*              at clct?
> #pseudo-device md                              # memory disk device
>(ramdisk)
> pseudo-device  vnd                             # disk-like interface to
>files
>
>+options SLJIT
>+options BPFJIT
>+
> # Network pseudo-devices
> pseudo-device  bpfilter                        # Berkeley packet filter
> pseudo-device  ipfilter                        # IP filter (firewall)
>and NAT
>Index: sys/arch/evbmips/conf/files.malta
>===================================================================
>RCS file: /cvsroot/src/sys/arch/evbmips/conf/files.malta,v
>retrieving revision 1.18
>diff -p -u -u -r1.18 files.malta
>--- sys/arch/evbmips/conf/files.malta   9 Jul 2011 16:03:01 -0000
>1.18
>+++ sys/arch/evbmips/conf/files.malta   24 Nov 2012 14:05:30 -0000
>@@ -26,6 +26,12 @@ device       cpu
> attach cpu at mainbus
> file   arch/evbmips/evbmips/cpu.c              cpu
>
>+#
>+# Stack-less Just-In-Time compiler
>+#
>+
>+include        "external/bsd/sljit/conf/files.sljit"
>+
> # Machine-independent I2O drivers.
> include "dev/i2o/files.i2o"
>

I would commit that with the options commented out.


christos




Home | Main Index | Thread Index | Old Index