summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf_buffer.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2012-05-21 22:19:19 +0000
committermelifaro <melifaro@FreeBSD.org>2012-05-21 22:19:19 +0000
commite5f61c6580ea0a76e8c43d0fa98f33e5623b639c (patch)
treea1fde4fc9d51ecf611705c4c685d911eacba3bb4 /sys/net/bpf_buffer.h
parent34ec5c86502577f86de209389836d93646d78b9b (diff)
downloadFreeBSD-src-e5f61c6580ea0a76e8c43d0fa98f33e5623b639c.zip
FreeBSD-src-e5f61c6580ea0a76e8c43d0fa98f33e5623b639c.tar.gz
Call bpf_jitter() before acquiring BPF global lock due to malloc() being used inside bpf_jitter.
Eliminate bpf_buffer_alloc() and allocate BPF buffers on descriptor creation and BIOCSBLEN ioctl. This permits us not to allocate buffers inside bpf_attachd() which is protected by global lock. Approved by: kib(mentor) MFC in: 4 weeks
Diffstat (limited to 'sys/net/bpf_buffer.h')
-rw-r--r--sys/net/bpf_buffer.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/bpf_buffer.h b/sys/net/bpf_buffer.h
index 733137f..c1dc1f3 100644
--- a/sys/net/bpf_buffer.h
+++ b/sys/net/bpf_buffer.h
@@ -36,7 +36,6 @@
#error "no user-serviceable parts inside"
#endif
-void bpf_buffer_alloc(struct bpf_d *d);
void bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset,
void *src, u_int len);
void bpf_buffer_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset,
OpenPOWER on IntegriCloud