OSDN Git Service

libbpf: move xsk.{c,h} into selftests/bpf
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 27 Jun 2022 21:15:13 +0000 (14:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 28 Jun 2022 20:13:32 +0000 (13:13 -0700)
commitf36600634282a519e1b0abea609acdc8731515d7
tree1a14e736147f2b5e1aa15da67fbf55daf6036d68
parent697fb80a53642be624f5121b6ca9d66769c180e0
libbpf: move xsk.{c,h} into selftests/bpf

Remove deprecated xsk APIs from libbpf. But given we have selftests
relying on this, move those files (with minimal adjustments to make them
compilable) under selftests/bpf.

We also remove all the removed APIs from libbpf.map, while overall
keeping version inheritance chain, as most APIs are backwards
compatible so there is no need to reassign them as LIBBPF_1.0.0 versions.

Cc: Magnus Karlsson <magnus.karlsson@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220627211527.2245459-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/Build
tools/lib/bpf/Makefile
tools/lib/bpf/libbpf.map
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/xdpxceiver.c
tools/testing/selftests/bpf/xsk.c [moved from tools/lib/bpf/xsk.c with 95% similarity]
tools/testing/selftests/bpf/xsk.h [moved from tools/lib/bpf/xsk.h with 84% similarity]