Skip to contentSkip to conversation

libbpf: Clean up legacy bpf maps declaration in bpf_helpers

PATCH Applied Xin Liu 2 participants 2 messages Sep 13, 2022 – Sep 16, 2022

Subsystems (2)
lore
Share & tools
lore

Xin Liu

author
#0 lore raw

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
index 7349b16b8e2f..d37c4fe2849d 100644
@@ -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
#1 lore raw
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_def in bpf_helpers.h. Supported in Libbpf 1.0 ([0])

[0]:https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0

[...]

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