summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf_jitter.h
Commit message (Collapse)AuthorAgeFilesLines
* - Allocate scratch memory on stack instead of pre-allocating it withjkim2009-11-201-1/+0
| | | | | | | | | the filter as we do from bpf_filter()[1]. - Revert experimental use of contigmalloc(9)/contigfree(9). It has no performance benefit over malloc(9)/free(9)[2]. Requested by: rwatson[1] Pointed out by: rwatson, jhb, alc[2]
* - Change internal function bpf_jit_compile() to return allocated size ofjkim2009-11-181-3/+1
| | | | | | the generated binary and remove page size limitation for userland. - Use contigmalloc(9)/contigfree(9) instead of malloc(9)/free(9) to make sure the generated binary aligns properly and make it physically contiguous.
* - Make BPF JIT compiler working again in userland. We are limiting size ofjkim2009-11-181-1/+3
| | | | | generated native binary to page size for now. - Update copyright date and fix some style nits.
* Fix a typo in copyrights.jkim2008-08-251-1/+1
|
* Embed scratch memory in the filter structure.jkim2008-08-251-1/+1
| | | | MFC after: 3 days
* - Make these files compilable on user land.jkim2008-08-181-2/+4
| | | | - Update copyrights and fix style(9).
* Add BPF Just-In-Time compiler support for ng_bpf(4).jkim2005-12-071-0/+2
| | | | | The sysctl is changed from net.bpf.jitter.enable to net.bpf_jitter.enable and this controls both bpf(4) and ng_bpf(4) now.
* Add experimental BPF Just-In-Time compiler for amd64 and i386.jkim2005-12-061-0/+80
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)
OpenPOWER on IntegriCloud