]> git.proxmox.com Git - mirror_ovs.git/blobdiff - rhel/openvswitch-fedora.spec.in
cirrus: Use FreeBSD 12.2.
[mirror_ovs.git] / rhel / openvswitch-fedora.spec.in
index 2c0c4fa186a37da092843e0ea4c88ee86c89507b..e457fa679a8e1a6e289e83a27ae6d7162e141080 100644 (file)
@@ -28,6 +28,8 @@
 %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"
@@ -70,9 +72,12 @@ BuildRequires: libcap-ng libcap-ng-devel
 %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
@@ -162,7 +167,10 @@ This package provides IPsec tunneling support for OVS tunnels.
         --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 \