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 3A699199B7 for ; Thu, 7 Sep 2017 14:14:07 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 2E44FCD5C8; Thu, 7 Sep 2017 14:10:17 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org, yliu@fridaylinux.org, maxime.coquelin@redhat.com Cc: stephen@networkplumber.org Date: Thu, 7 Sep 2017 14:13:45 +0200 Message-Id: <20170907121347.16208-9-olivier.matz@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170907121347.16208-1-olivier.matz@6wind.com> References: <20170831134015.1383-1-olivier.matz@6wind.com> <20170907121347.16208-1-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 08/10] net/virtio: remove SSE check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 12:14:07 -0000 Since commit f27769f796a0 ("mk: require SSE4.2 support on all x86 platforms"), SSE4.2 is a requirement when compiling on x86 platforms. We can remove this check in the virtio driver. Signed-off-by: Olivier Matz --- drivers/net/virtio/virtio_ethdev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 8dad3095f..0a4c677d7 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1743,10 +1743,7 @@ virtio_dev_configure(struct rte_eth_dev *dev) hw->use_simple_rxtx = 1; -#if defined RTE_ARCH_X86 - if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_SSE3)) - hw->use_simple_rxtx = 0; -#elif defined RTE_ARCH_ARM64 || defined CONFIG_RTE_ARCH_ARM +#if defined RTE_ARCH_ARM64 || defined CONFIG_RTE_ARCH_ARM if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_NEON)) hw->use_simple_rxtx = 0; #endif -- 2.11.0