diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2021-02-03 16:27:32 -0800 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2021-02-05 18:29:27 +0100 |
commit | 9acbdd65cdcf34721766a79906a4efba6cfcfbc9 (patch) | |
tree | 5ad69dde2715e7f74f8e1b7f4801aebcec563bb4 /rhel | |
parent | 498cf3eaed1cc8e163876e23ecf333c392079778 (diff) | |
download | openvswitch-9acbdd65cdcf34721766a79906a4efba6cfcfbc9.tar.gz |
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 <yihung.wei@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/openvswitch-fedora.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -164,6 +169,9 @@ This package provides IPsec tunneling support for OVS tunnels. %if %{with dpdk} --with-dpdk=shared \ %endif +%if %{with afxdp} + --enable-afxdp \ +%endif --enable-ssl \ --disable-static \ --enable-shared \ |