libbpf: Clean up legacy bpf maps declaration in bpf_helpers
PATCH v3 1/1 libbpf: Clean up legacy bpf maps declaration in bpf_helpers
Legacy bpf maps declaration were no longer supported in Libbpf 1.0. So it was time to remove the definition of bpf_map_def in bpf_helpers.h. Supported in Libbpf 1.0 ([0])
[0]:https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
---
v2 -> v3: Modify the number of lines and links in commit information
v2: https://lore.kernel.org/bpf/[email protected]/
v1: https://lore.kernel.org/bpf/[email protected]/
tools/lib/bpf/bpf_helpers.h | 12 ------------ 1 file changed, 12 deletions(-)
tools/lib/bpf/bpf_helpers.h +0 -12
@@ -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) */
Signature · 1 line
2.33.0
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 10 lines · On Tue, 13 Sep 2022 15:36:43 +0800 you wrote:
Legacy bpf maps declaration were no longer supported in Libbpf 1.0. So it was time to remove the definition of
bpf_map_definbpf_helpers.h. Supported in Libbpf 1.0 ([0])[0]:https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
Acked-by Song Liu <[email protected]>Signed-off-by Xin Liu <[email protected]>[...]
Here is the summary with links:
- [v3] libbpf: Clean up legacy bpf maps declaration in bpf_helpers
https://git.kernel.org/bpf/bpf-next/c/dc567045f159
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html