diff options
author | melifaro <melifaro@FreeBSD.org> | 2012-05-21 22:19:19 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2012-05-21 22:19:19 +0000 |
commit | e5f61c6580ea0a76e8c43d0fa98f33e5623b639c (patch) | |
tree | a1fde4fc9d51ecf611705c4c685d911eacba3bb4 /sys/net/bpf_buffer.h | |
parent | 34ec5c86502577f86de209389836d93646d78b9b (diff) | |
download | FreeBSD-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.h | 1 |
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, |