Skip to contentSkip to conversation

net/fm10k: fix non-x86 build

PATCH In review Ferruh Yigit 2 participants 3 messages Feb 19, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

Fixes 10eb9ce8dccd ("fm10k: allow to disable vector driver")

---
Cc: [email protected]

---
 drivers/net/fm10k/Makefile | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/fm10k/Makefile +2 -0
index 0271bcb15..29e659da8 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw

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")

---
Cc: [email protected]

---
 drivers/net/fm10k/Makefile | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/fm10k/Makefile +0 -0
index 0271bcb15..29e659da8 100644
@@ -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

drivers/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

author Applied
#2 lore raw
Quoted 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")

Applied to dpdk-next-net/master, thanks.