%bcond_without libcapng
# To enable DPDK support, specify '--with dpdk' when building
%bcond_with dpdk
+# To enable AF_XDP support, specify '--with afxdp' when building
+%bcond_with afxdp
# If there is a need to automatically enable the package after installation,
# specify the "--with autoenable"
%endif
%if %{with dpdk}
BuildRequires: libpcap-devel numactl-devel
-BuildRequires: dpdk-devel >= 17.05.1
+BuildRequires: dpdk-devel >= 20.11
Provides: %{name}-dpdk = %{version}-%{release}
%endif
+%if %{with afxdp}
+BuildRequires: libbpf-devel numactl-devel
+%endif
BuildRequires: unbound unbound-devel
Requires: openssl hostname iproute module-init-tools unbound
--disable-libcapng \
%endif
%if %{with dpdk}
- --with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \
+ --with-dpdk=shared \
+%endif
+%if %{with afxdp}
+ --enable-afxdp \
%endif
--enable-ssl \
--disable-static \