From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id BC6617CB1 for ; Tue, 20 Jun 2017 18:37:46 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2017 09:37:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,364,1493708400"; d="scan'208";a="1143134093" Received: from unknown (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga001.jf.intel.com with ESMTP; 20 Jun 2017 09:37:45 -0700 From: Bruce Richardson To: Cristian Dumitrescu Cc: Bruce Richardson , dev@dpdk.org Date: Tue, 20 Jun 2017 16:23:03 +0100 Message-Id: <20170620152313.107642-9-bruce.richardson@intel.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170620152313.107642-1-bruce.richardson@intel.com> References: <20170620152313.107642-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 08/18] sched: remove check for SSE4 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: Tue, 20 Jun 2017 16:37:48 -0000 Since SSE4 is now part of the minimum requirements for DPDK, we don't need to check for its presence any more. Signed-off-by: Bruce Richardson --- lib/librte_sched/rte_sched.c | 2 +- lib/librte_table/rte_lru.h | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 614705d..95c24e3 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -56,7 +56,7 @@ #ifdef RTE_SCHED_VECTOR #include -#if defined(__SSE4__) +#ifdef RTE_ARCH_X86 #define SCHED_VECTOR_SSE4 #endif diff --git a/lib/librte_table/rte_lru.h b/lib/librte_table/rte_lru.h index e87e062..1090163 100644 --- a/lib/librte_table/rte_lru.h +++ b/lib/librte_table/rte_lru.h @@ -47,18 +47,13 @@ extern "C" { #endif #ifndef RTE_TABLE_HASH_LRU_STRATEGY -#ifdef __SSE4_2__ +#ifdef RTE_ARCH_X86_64 #define RTE_TABLE_HASH_LRU_STRATEGY 2 #else /* if no SSE, use simple scalar version */ #define RTE_TABLE_HASH_LRU_STRATEGY 1 #endif #endif -#ifndef RTE_ARCH_X86_64 -#undef RTE_TABLE_HASH_LRU_STRATEGY -#define RTE_TABLE_HASH_LRU_STRATEGY 1 -#endif - #if (RTE_TABLE_HASH_LRU_STRATEGY < 0) || (RTE_TABLE_HASH_LRU_STRATEGY > 3) #error Invalid value for RTE_TABLE_HASH_LRU_STRATEGY #endif -- 2.9.4