]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Deprecate AF_XDP support
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 29 Oct 2021 09:01:11 +0000 (11:01 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 2 Nov 2021 01:12:44 +0000 (18:12 -0700)
commit45acdbbcc52d798a9b9efd8000514e9dbb2b6eb3
tree8c94851fd540d083728eb6758d9e6e951ef5f737
parent196b42b96b218feb3fb92fbc255b84e55e6a3530
libbpf: Deprecate AF_XDP support

Deprecate AF_XDP support in libbpf ([0]). This has been moved to
libxdp as it is a better fit for that library. The AF_XDP support only
uses the public libbpf functions and can therefore just use libbpf as
a library from libxdp. The libxdp APIs are exactly the same so it
should just be linking with libxdp instead of libbpf for the AF_XDP
functionality. If not, please submit a bug report. Linking with both
libraries is supported but make sure you link in the correct order so
that the new functions in libxdp are used instead of the deprecated
ones in libbpf.

Libxdp can be found at https://github.com/xdp-project/xdp-tools.

  [0] Closes: https://github.com/libbpf/libbpf/issues/270

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20211029090111.4733-1-magnus.karlsson@gmail.com
tools/lib/bpf/xsk.h