From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 73257107A; Thu, 14 Dec 2017 15:32:35 +0100 (CET) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 75A311145A4; Thu, 14 Dec 2017 15:24:10 +0100 (CET) From: Olivier Matz To: dev@dpdk.org, Yuanhan Liu , Maxime Coquelin Cc: Samuel Gauthier , stable@dpdk.org Date: Thu, 14 Dec 2017 15:32:13 +0100 Message-Id: <20171214143213.28577-1-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-stable] [PATCH] net/virtio: fix Rx and Tx handler selection for arm32 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 14:32:35 -0000 From: Samuel Gauthier On arm32, we were always selecting the simple handler, but it is only available if neon is present. This is due to a typo in the name of the config option. CONFIG_RTE_ARCH_ARM is for Makefiles. One should use RTE_ARCH_ARM. Fixes: 2d7c37194ee4 ("net/virtio: add NEON based Rx handler") Cc: stable@dpdk.org Signed-off-by: Samuel Gauthier --- drivers/net/virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index e0328f61d..c0ba83b06 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1784,7 +1784,7 @@ virtio_dev_configure(struct rte_eth_dev *dev) hw->use_simple_rx = 1; hw->use_simple_tx = 1; -#if defined RTE_ARCH_ARM64 || defined CONFIG_RTE_ARCH_ARM +#if defined RTE_ARCH_ARM64 || defined RTE_ARCH_ARM if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON)) { hw->use_simple_rx = 0; hw->use_simple_tx = 0; -- 2.11.0