net/fm10k: fix non-x86 build
PATCH 1/1 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.
---
Cc: [email protected]
--- drivers/net/fm10k/Makefile | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/fm10k/Makefile +2 -0
@@ -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
Signature · 1 line
2.24.1
Thanks,
Xiao
Quoted 42 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Wednesday, February 19, 2020 10:17 PM
To: Zhang, Qi Z <[email protected]>; Wang, Xiao W <[email protected]>; Chen Jing D(Mark) <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; [email protected]
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")Signed-off-by Ferruh Yigit <[email protected]>---
Cc: [email protected]--- drivers/net/fm10k/Makefile | 2 ++ 1 file changed, 2 insertions(+)drivers/net/fm10k/Makefile +0
-0@@ -71,6 +71,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) +=
fm10k_common.c
SRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) +=fm10k_mbx.cSRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) +=fm10k_vf.cSRCS-$(CONFIG_RTE_LIBRTE_FM10K_PMD) +=fm10k_api.cdrivers/net/fm10k/Makefile +2
-1+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
Ferruh Yigit
AppliedQuoted 17 lines · Xiao W
Quoted 17 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Wednesday, February 19, 2020 10:17 PM
To: Zhang, Qi Z <[email protected]>; Wang, Xiao W <[email protected]>; Chen Jing D(Mark) <[email protected]>
Cc: [email protected]; Yigit, Ferruh <[email protected]>; [email protected]
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.
Quoted 7 lines
Quoted 4 lines
Fixes 10eb9ce8dccd ("fm10k: allow to disable vector driver")Signed-off-by Ferruh Yigit <[email protected]>Acked-by Xiao Wang <[email protected]>
Applied to dpdk-next-net/master, thanks.