From 9acbdd65cdcf34721766a79906a4efba6cfcfbc9 Mon Sep 17 00:00:00 2001 From: Yi-Hung Wei Date: Wed, 3 Feb 2021 16:27:32 -0800 Subject: rhel: Add option to enable AF_XDP on rpm package. This patch adds an RPMBUILD_OPT so that user can enable AF_XDP support in the rpm package by: $ make rpm-fedora RPMBUILD_OPT="--with afxdp" Signed-off-by: Yi-Hung Wei Acked-by: William Tu Signed-off-by: Ilya Maximets --- rhel/openvswitch-fedora.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rhel') diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in index 21929e6cf..87de631e3 100644 --- a/rhel/openvswitch-fedora.spec.in +++ b/rhel/openvswitch-fedora.spec.in @@ -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" @@ -73,6 +75,9 @@ BuildRequires: libpcap-devel numactl-devel BuildRequires: dpdk-devel >= 17.05.1 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 @@ -163,6 +168,9 @@ This package provides IPsec tunneling support for OVS tunnels. %endif %if %{with dpdk} --with-dpdk=shared \ +%endif +%if %{with afxdp} + --enable-afxdp \ %endif --enable-ssl \ --disable-static \ -- cgit v1.2.1