Message ID | 20200210134854.105049-2-ciara.loftus@intel.com |
---|---|
State | Accepted |
Commit | 5bb068a7723f830848eb991f9ac6fe13640bf3da |
Headers | show |
Series | [ovs-dev,1/2] acinclude: handle dependencies for DPDK's PCAP PMD | expand |
On Mon, Feb 10, 2020 at 01:48:54PM +0000, Ciara Loftus wrote: > 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> Applied to master, thanks.
diff --git a/acinclude.m4 b/acinclude.m4 index 6f284eaf9..366324778 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>]])
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> --- acinclude.m4 | 4 ++++ 1 file changed, 4 insertions(+)