1 From 0b9ce550c4f60a69da558da6044e1b394256b43c Mon Sep 17 00:00:00 2001
2 From: Ferruh Yigit <ferruh.yigit@intel.com>
3 Date: Thu, 6 Apr 2017 18:05:09 +0100
4 Subject: [PATCH] net/thunderx: disable PMD for old compilers
6 Disable for gcc < 4.7 and icc <= 14.0
8 PMD uses some compiler builtins and new compiler options. Tested with
9 gcc 4.5.1 and following were not supported:
17 __ORDER_LITTLE_ENDIAN__
28 It is not easy to fix all in PMD, disabling PMD for older compilers.
30 Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
32 drivers/net/Makefile | 5 +++++
33 mk/toolchain/gcc/rte.toolchain-compat.mk | 5 +++++
34 mk/toolchain/icc/rte.toolchain-compat.mk | 5 +++++
35 3 files changed, 15 insertions(+)
37 Origin: http://dpdk.org/browse/dpdk/commit/?id=0b9ce550c4f60a69da558da6044e1b394256b43c
38 Original-Author: Ferruh Yigit <ferruh.yigit@intel.com>
39 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1691659
40 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
41 Last-Update: 2017-05-18
43 --- a/drivers/net/Makefile
44 +++ b/drivers/net/Makefile
47 include $(RTE_SDK)/mk/rte.vars.mk
49 +# set in mk/toolchain/xxx/rte.toolchain-compat.mk
50 +ifeq ($(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD),d)
51 + $(warning thunderx pmd is not supported by old compilers)
54 DIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += af_packet
55 DIRS-$(CONFIG_RTE_LIBRTE_BNX2X_PMD) += bnx2x
56 DIRS-$(CONFIG_RTE_LIBRTE_PMD_BOND) += bonding
57 --- a/mk/toolchain/gcc/rte.toolchain-compat.mk
58 +++ b/mk/toolchain/gcc/rte.toolchain-compat.mk
60 ifeq ($(shell test $(GCC_VERSION) -lt 42 && echo 1), 1)
61 MACHINE_CFLAGS := $(filter-out -march% -mtune% -msse%,$(MACHINE_CFLAGS))
64 + # Disable thunderx PMD for gcc < 4.7
65 + ifeq ($(shell test $(GCC_VERSION) -lt 47 && echo 1), 1)
66 + CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD=d
69 --- a/mk/toolchain/icc/rte.toolchain-compat.mk
70 +++ b/mk/toolchain/icc/rte.toolchain-compat.mk
72 # remove march options
73 MACHINE_CFLAGS := $(patsubst -march=%,-xSSE3,$(MACHINE_CFLAGS))
76 + # Disable thunderx PMD for icc <= 14.0
77 + ifeq ($(shell test $(ICC_MAJOR_VERSION) -le 14 && echo 1), 1)
78 + CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD=d