All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] libbpf: Clean up legacy bpf maps declaration in bpf_helpers
@ 2022-09-13  7:36 Xin Liu
  2022-09-16 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Liu @ 2022-09-13  7:36 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa
  Cc: bpf, linux-kernel, yanan, wuchangye, xiesongyang, zhudi2,
	kongweibin2, liuxin350

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

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Xin Liu <liuxin350@huawei.com>
---
v2 -> v3: Modify the number of lines and links in commit information
v2: https://lore.kernel.org/bpf/94275aa1e5af4efea53f322f91b27380@huawei.com/
v1: https://lore.kernel.org/bpf/6d349d1047f44001b926f80ad5416245@huawei.com/

 tools/lib/bpf/bpf_helpers.h | 12 ------------
 1 file changed, 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) */
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] libbpf: Clean up legacy bpf maps declaration in bpf_helpers
  2022-09-13  7:36 [PATCH v3] libbpf: Clean up legacy bpf maps declaration in bpf_helpers Xin Liu
@ 2022-09-16 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-16 21:00 UTC (permalink / raw)
  To: Xin Liu
  Cc: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel, yanan, wuchangye,
	xiesongyang, zhudi2, kongweibin2

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

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
> 
> Acked-by: Song Liu <song@kernel.org>
> Signed-off-by: Xin Liu <liuxin350@huawei.com>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-16 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  7:36 [PATCH v3] libbpf: Clean up legacy bpf maps declaration in bpf_helpers Xin Liu
2022-09-16 21:00 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.