BPF List
 help / color / mirror / Atom feed
* [PATCH v2] libbpf: Clean up legacy bpf maps declaration in bpf_helpers
@ 2022-09-07  2:51 Liuxin(EulerOS)
  2022-09-10  0:44 ` Andrii Nakryiko
  0 siblings, 1 reply; 3+ messages in thread
From: Liuxin(EulerOS) @ 2022-09-07  2:51 UTC (permalink / raw)
  To: andrii@kernel.org, daniel@iogearbox.net, ast@kernel.org,
	martin.lau@linux.dev, song@kernel.org, yhs@fb.com,
	john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com,
	haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org,
	linux-kernel@vger.kernel.org, 854182924@qq.com
  Cc: Yanan (Euler), Wuchangye (EulerOS), Xiesongyang, zhudi (E),
	kongweibin (A)

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.

LINK:[1] 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>
---
Changes in v2:
    - Fix strange signatures

V1: https://lore.kernel.org/bpf/CAPhsuW7Em6q5hqiKWEZpJOaU5DTrZE+BPPHq+Chyz0-+-yQ_ZA@mail.gmail.com/T/#t

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 867b73483..9cad13e7f 100644
--- a/tools/lib/bpf/bpf_helpers.h
+++ b/tools/lib/bpf/bpf_helpers.h
@@ -167,18 +167,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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-13  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07  2:51 [PATCH v2] libbpf: Clean up legacy bpf maps declaration in bpf_helpers Liuxin(EulerOS)
2022-09-10  0:44 ` Andrii Nakryiko
2022-09-13  3:40   ` 答复: " Liuxin(EulerOS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox