[dpdk-dev] [PATCH] net/fm10k: fix non-x86 build

Wang, Xiao W xiao.w.wang at intel.com
Wed Feb 19 15:31:03 CET 2020


Acked-by: Xiao Wang <xiao.w.wang at intel.com>

Thanks,
Xiao

> -----Original Message-----
> From: Yigit, Ferruh <ferruh.yigit at intel.com>
> Sent: Wednesday, February 19, 2020 10:17 PM
> To: Zhang, Qi Z <qi.z.zhang at intel.com>; Wang, Xiao W
> <xiao.w.wang at intel.com>; Chen Jing D(Mark) <jing.d.chen at intel.com>
> Cc: dev at dpdk.org; Yigit, Ferruh <ferruh.yigit at intel.com>; stable at dpdk.org
> Subject: [PATCH] net/fm10k: fix non-x86 build
> 
> 'fm10k_rxtx_vec.c' is SSE vector instructions implementation and should
> be compiled only for x86.
> 
> The vector PMD support controlled by
> 'CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR' config option, but it is enabled
> by
> default, safer to add x86 checks too.
> 
> Fixes: 10eb9ce8dccd ("fm10k: allow to disable vector driver")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> Cc: jing.d.chen at intel.com
> ---
>  drivers/net/fm10k/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/net/fm10k/Makefile b/drivers/net/fm10k/Makefile
> index 0271bcb15..29e659da8 100644
> --- a/drivers/net/fm10k/Makefile
> +++ b/drivers/net/fm10k/Makefile
> @@ -71,6 +71,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) +=
> fm10k_common.c
>  SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_mbx.c
>  SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_vf.c
>  SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) += fm10k_api.c
> +ifeq ($(CONFIG_RTE_ARCH_X86), y)
>  SRCS-$(CONFIG_RTE_LIBRTE_FM10K_INC_VECTOR) += fm10k_rxtx_vec.c
> +endif
> 
>  include $(RTE_SDK)/mk/rte.lib.mk
> --
> 2.24.1



More information about the dev mailing list