From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: [PATCH v2] mk: change TLS model for DPAA machine Date: Wed, 4 Jul 2018 15:24:45 +0530 Message-ID: <1530698085-1933-1-git-send-email-hemant.agrawal@nxp.com> References: <1528180425-27937-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: jerin.jacob@caviumnetworks.com, Sachin Saxena To: dev@dpdk.org Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0055.outbound.protection.outlook.com [104.47.0.55]) by dpdk.org (Postfix) with ESMTP id D34BD1BDE6 for ; Wed, 4 Jul 2018 11:56:23 +0200 (CEST) In-Reply-To: <1528180425-27937-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Sachin Saxena Random corruptions observed on platfoms with using the dpdk library in shared mode with VPP software (plugin). using traditional TLS scheme resolved the issue. Tested with VPP with DPDK as a plugin. Signed-off-by: Sachin Saxena --- v2: remove the armv8 machine changes mk/machine/dpaa/rte.vars.mk | 3 +++ mk/machine/dpaa2/rte.vars.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mk/machine/dpaa/rte.vars.mk b/mk/machine/dpaa/rte.vars.mk index bddcb80..75df626 100644 --- a/mk/machine/dpaa/rte.vars.mk +++ b/mk/machine/dpaa/rte.vars.mk @@ -32,3 +32,6 @@ MACHINE_CFLAGS += -march=armv8-a+crc ifdef CONFIG_RTE_ARCH_ARM_TUNE MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%) endif + +# To avoid TLS corruption issue. +MACHINE_CFLAGS += -mtls-dialect=trad diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk index 2fd2eac..aaa03c4 100644 --- a/mk/machine/dpaa2/rte.vars.mk +++ b/mk/machine/dpaa2/rte.vars.mk @@ -32,3 +32,6 @@ MACHINE_CFLAGS += -march=armv8-a+crc ifdef CONFIG_RTE_ARCH_ARM_TUNE MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%) endif + +# To avoid TLS corruption issue. +MACHINE_CFLAGS += -mtls-dialect=trad -- 2.7.4