diff options
author | Ciara Loftus <ciara.loftus@intel.com> | 2020-02-10 13:48:54 +0000 |
---|---|---|
committer | William Tu <u9012063@gmail.com> | 2020-04-17 11:56:54 -0700 |
commit | 5bb068a7723f830848eb991f9ac6fe13640bf3da (patch) | |
tree | d38a6daeb654e3bde8657383006f6df0ce8742e8 /acinclude.m4 | |
parent | 976c452a7b86533e8599970d771f077159815744 (diff) | |
download | openvswitch-5bb068a7723f830848eb991f9ac6fe13640bf3da.tar.gz |
acinclude: handle dependencies for DPDK's AF_XDP PMD
If RTE_LIBRTE_AF_XDP is enabled in the DPDK build, OVS must link
the libbpf library, otherwise build failures will occur.
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b5b2f59e4..0e90c3332 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -359,6 +359,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [ OVS_FIND_DEPENDENCY([pcap_dump_close], [pcap], [libpcap]) ], [], [[#include <rte_config.h>]]) + AC_CHECK_DECL([RTE_LIBRTE_PMD_AF_XDP], [ + LIBBPF_LDADD="-lbpf" + ], [], [[#include <rte_config.h>]]) + AC_CHECK_DECL([RTE_LIBRTE_VHOST_NUMA], [ AC_DEFINE([VHOST_NUMA], [1], [NUMA Aware vHost support detected in DPDK.]) ], [], [[#include <rte_config.h>]]) |