]> git.proxmox.com Git - mirror_iproute2.git/commit - lib/bpf.c
tc, bpf: add support for map pre/allocation
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 8 Apr 2016 22:32:05 +0000 (00:32 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Apr 2016 21:54:47 +0000 (21:54 +0000)
commit4dd3f50af4b82a6a29ede951bde97197e88f9c5d
treef56c5bd250a030787d26367810f982baaadd5c74
parentafc1a2000b6f991587c815076941385c259e21ed
tc, bpf: add support for map pre/allocation

Follow-up to kernel commit 6c9059817432 ("bpf: pre-allocate hash map
elements"). Add flags support, so that we can pass in BPF_F_NO_PREALLOC
flag for disallowing preallocation. Update examples accordingly and also
remove the BPF_* map helper macros from them as they were not very useful.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
examples/bpf/bpf_cyclic.c
examples/bpf/bpf_graft.c
examples/bpf/bpf_prog.c
examples/bpf/bpf_shared.c
examples/bpf/bpf_tailcall.c
include/bpf_api.h
include/bpf_elf.h
tc/tc_bpf.c