[ovs-dev] [PATCH] acinclude: check for numa library

Loftus, Ciara ciara.loftus at intel.com
Mon Jun 20 09:53:27 UTC 2016


> 
> Numa library is needed for NUMA aware vHost User functionality.
> Incase of missing numa package, the OVS DPDK configuration fails with
> "error: Could not find DPDK libraries in <DPDK_LOC>/TARGET/lib" though
> the DPDK library is installed.
> 
> This patch fixes this inappropriate error by checking for presence of
> numa library and output an appropriate error message "error: unable to
> find libnuma, install the dependency package" in case of missing package.
> 
> Signed-off-by: Bhanuprakash Bodireddy
> <bhanuprakash.bodireddy at intel.com>
> ---
>  acinclude.m4 | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/acinclude.m4 b/acinclude.m4
> index 3978980..fddd913 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -209,6 +209,8 @@ AC_DEFUN([OVS_CHECK_DPDK], [
>        [AC_DEFINE([VHOST_CUSE], [1], [DPDK vhost-cuse support enabled,
> vhost-user disabled.])
>         DPDK_EXTRA_LIB="-lfuse"])
> 
> +    AC_SEARCH_LIBS([get_mempolicy],[numa],[],[AC_MSG_ERROR([unable
> to find libnuma, install the dependency package])])
> +
>      # On some systems we have to add -ldl to link with dpdk
>      #
>      # This code, at first, tries to link without -ldl (""),
> --
> 2.4.11


Acked-by: Ciara Loftus <ciara.loftus at intel.com>




More information about the dev mailing list