[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250813200912.3523279-1-yuka@yuka.dev>
Date: Wed, 13 Aug 2025 22:09:09 +0200
From: Yureka Lilian <yuka@...a.dev>
To: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <martin.lau@...ux.dev>,
Eduard Zingerman <eddyz87@...il.com>,
Song Liu <song@...nel.org>,
Yonghong Song <yonghong.song@...ux.dev>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Stanislav Fomichev <sdf@...ichev.me>,
Hao Luo <haoluo@...gle.com>,
Jiri Olsa <jolsa@...nel.org>
Cc: Yureka Lilian <yuka@...a.dev>,
bpf@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 0/2] bpf: fix reuse of DEVMAP
This patch series includes the previous fix to libbpf for re-using DEVMAP
maps, but modifies it to preserve compatibility with older kernels, thanks
to the feedback given by Martin KaFai Lau.
Additionally adds a basic selftest covering the re-use of DEVMAP maps, as
requested by Eduard Zingerman.
Yureka Lilian (2):
bpf: fix reuse of DEVMAP
bpf: add test for DEVMAP reuse
tools/lib/bpf/libbpf.c | 14 +++-
.../bpf/prog_tests/pinning_devmap_reuse.c | 68 +++++++++++++++++++
.../selftests/bpf/progs/test_pinning_devmap.c | 20 ++++++
3 files changed, 101 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/bpf/prog_tests/pinning_devmap_reuse.c
create mode 100644 tools/testing/selftests/bpf/progs/test_pinning_devmap.c
--
2.50.1
Powered by blists - more mailing lists