mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
selftests: bpf: Remove unused bpf_map_def_legacy struct
samples/bpf no longer use bpf_map_def_legacy and instead use the libbpf's bpf_map_def or new BTF-defined MAP format. This commit removes unused bpf_map_def_legacy struct from selftests/bpf/bpf_legacy.h. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200707184855.30968-5-danieltimlee@gmail.com
This commit is contained in:
parent
cc7f641d63
commit
5cfd607b49
1 changed files with 0 additions and 14 deletions
|
|
@ -2,20 +2,6 @@
|
||||||
#ifndef __BPF_LEGACY__
|
#ifndef __BPF_LEGACY__
|
||||||
#define __BPF_LEGACY__
|
#define __BPF_LEGACY__
|
||||||
|
|
||||||
/*
|
|
||||||
* legacy bpf_map_def with extra fields supported only by bpf_load(), do not
|
|
||||||
* use outside of samples/bpf
|
|
||||||
*/
|
|
||||||
struct bpf_map_def_legacy {
|
|
||||||
unsigned int type;
|
|
||||||
unsigned int key_size;
|
|
||||||
unsigned int value_size;
|
|
||||||
unsigned int max_entries;
|
|
||||||
unsigned int map_flags;
|
|
||||||
unsigned int inner_map_idx;
|
|
||||||
unsigned int numa_node;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define BPF_ANNOTATE_KV_PAIR(name, type_key, type_val) \
|
#define BPF_ANNOTATE_KV_PAIR(name, type_key, type_val) \
|
||||||
struct ____btf_map_##name { \
|
struct ____btf_map_##name { \
|
||||||
type_key key; \
|
type_key key; \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue