diff options
| author | Xin Liu <[email protected]> | 2022-09-13 07:36:43 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-09-16 20:56:09 +0000 |
| commit | dc567045f1590f6460d3e9a6ea6ad5e600b58b84 (patch) | |
| tree | 84bb5bbf5d904554e733efcfe43730655d12022b /tools/lib/bpf/bpf_helpers.h | |
| parent | selftests/bpf: Add veristat tool for mass-verifying BPF object files (diff) | |
| download | kernel-dc567045f1590f6460d3e9a6ea6ad5e600b58b84.tar.gz kernel-dc567045f1590f6460d3e9a6ea6ad5e600b58b84.zip | |
libbpf: Clean up legacy bpf maps declaration in bpf_helpers
Legacy BPF map declarations are no longer supported in libbpf v1.0 [0].
Only BTF-defined maps are supported starting from v1.0, so it is time to
remove the definition of bpf_map_def in bpf_helpers.h.
[0] https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
Signed-off-by: Xin Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
| -rw-r--r-- | tools/lib/bpf/bpf_helpers.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index 7349b16b8e2f..d37c4fe2849d 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -160,18 +160,6 @@ bpf_tail_call_static(void *ctx, const void *map, const __u32 slot) } #endif -/* - * Helper structure used by eBPF C program - * to describe BPF map attributes to libbpf loader - */ -struct bpf_map_def { - unsigned int type; - unsigned int key_size; - unsigned int value_size; - unsigned int max_entries; - unsigned int map_flags; -} __attribute__((deprecated("use BTF-defined maps in .maps section"))); - enum libbpf_pin_type { LIBBPF_PIN_NONE, /* PIN_BY_NAME: pin maps by name (in /sys/fs/bpf by default) */ |
