summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf_jitter.h
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2009-11-20 18:49:20 +0000
committerjkim <jkim@FreeBSD.org>2009-11-20 18:49:20 +0000
commit052bc52af74a5ae4eb6c288f7377bef9d10902cf (patch)
treebe30a4b8f4550e5c133425f045691a115092525c /sys/net/bpf_jitter.h
parentca5edf0fbf82952a5abaa900be8d00c8562ca803 (diff)
downloadFreeBSD-src-052bc52af74a5ae4eb6c288f7377bef9d10902cf.zip
FreeBSD-src-052bc52af74a5ae4eb6c288f7377bef9d10902cf.tar.gz
- Allocate scratch memory on stack instead of pre-allocating it with
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]
Diffstat (limited to 'sys/net/bpf_jitter.h')
-rw-r--r--sys/net/bpf_jitter.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/bpf_jitter.h b/sys/net/bpf_jitter.h
index fa99868..90a1ff5 100644
--- a/sys/net/bpf_jitter.h
+++ b/sys/net/bpf_jitter.h
@@ -54,7 +54,6 @@ typedef struct bpf_jit_filter {
/* The native filtering binary, in the form of a bpf_filter_func. */
bpf_filter_func func;
size_t size;
- int mem[BPF_MEMWORDS]; /* Scratch memory */
} bpf_jit_filter;
/*
OpenPOWER on IntegriCloud