From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id B868EC346 for ; Fri, 13 Nov 2015 18:58:32 +0100 (CET) Received: by pacdm15 with SMTP id dm15so106440680pac.3 for ; Fri, 13 Nov 2015 09:58:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nBP38IVTgnR5Z9PWn+ZHFQsJBUGVgCi07gQtzsjyx0I=; b=bbtBguXabVhCXvsDA9Nd/j3vIQZBLtC+NIcI2HMRATY/C/OxmtOKml2Bl4nObzapqV NvnSVujlziyJLA+ywuA/q+MgExuR4ibx0CPKwC8UNP1uQyIZ7vxbOBko63OHRs4fokDb KhTD/e7frt7cwtkLx+lo6DxuXV9rTP4bnzxtoO7VrJfLb67JnRd0gZBTCLfB93hwzKZU iZRYHvzvA47FltssPgUGBQEnaOlXYXz2VqlTrnjGxu+3e40r+ImY+pAfmOMYKFF29d+A prSnXY7IWotxZxDF1al2SAE65O/+Z5BcQsGF1+/0XTyq/IpgKvX2x4S9LRhRl/tAKb9h 3Yaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nBP38IVTgnR5Z9PWn+ZHFQsJBUGVgCi07gQtzsjyx0I=; b=QhQ6wdZSLbW42ETZfv8na3svYLyisC5SKvxUXmFdgipwaw249ZhXCSRtEIhHNpsH0l DN3I9ZI7k19jrIwHDr5qSaQKd/Iw4XWgcNQv6yk4s1GAzZM8UUqzQt7wXWSpUkT/nJv6 XbZGPtEWYNVLzyQawcCdl0TN1VRg6324YmfTGCu+BfioDax8RgZN6VThdoSwScitqJBH pBlDTzERFGLiXoT/PpJsDDec/TeoeJ9jeI94mjxKfIaBT86F4xDG4qt0d61hSsKdGD/5 Sn9mDPAUdA4oGMaW/S/8VmhFeAegBuqVAGOb6ewoEufG69mn/gdlsUo9fhJFYS8dAo5b o2pQ== X-Gm-Message-State: ALoCoQmB3jbbqp6jntzpmowciuWWxw8u4wbBo2g/p/mL0QzI/VfChR07X94H2lMV3tome/cRmqz3 X-Received: by 10.68.91.162 with SMTP id cf2mr23859370pbb.34.1447437512184; Fri, 13 Nov 2015 09:58:32 -0800 (PST) Received: from xeon-e3.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id bd10sm21603143pbd.29.2015.11.13.09.58.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Nov 2015 09:58:31 -0800 (PST) From: Stephen Hemminger To: cristian.dumitrescu@intel.com Date: Fri, 13 Nov 2015 09:58:34 -0800 Message-Id: <1447437516-19152-9-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447437516-19152-1-git-send-email-stephen@networkplumber.org> References: <1447437516-19152-1-git-send-email-stephen@networkplumber.org> Cc: dev@dpdk.org, Stephen Hemminger Subject: [dpdk-dev] [PATCH v2 08/10] sched: allow enabling SSE optimizations in config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 17:58:33 -0000 From: Stephen Hemminger Make the SSE optimizations visible as a normal config option. Signed-off-by: Stephen Hemminger --- config/common_bsdapp | 1 + config/common_linuxapp | 1 + lib/librte_sched/rte_sched.c | 8 ++------ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index 8717fb7..6b2cdf5 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -400,6 +400,7 @@ CONFIG_RTE_SCHED_RED=n CONFIG_RTE_SCHED_COLLECT_STATS=n CONFIG_RTE_SCHED_SUBPORT_TC_OV=n CONFIG_RTE_SCHED_PORT_N_GRINDERS=8 +CONFIG_RTE_SCHED_VECTOR=y # # Compile the distributor library diff --git a/config/common_linuxapp b/config/common_linuxapp index 9392dd8..2146915 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -408,6 +408,7 @@ CONFIG_RTE_SCHED_RED=n CONFIG_RTE_SCHED_COLLECT_STATS=n CONFIG_RTE_SCHED_SUBPORT_TC_OV=n CONFIG_RTE_SCHED_PORT_N_GRINDERS=8 +CONFIG_RTE_SCHED_VECTOR=y # # Compile the distributor library diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index a98c757..caf5f52 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -52,11 +52,7 @@ #pragma warning(disable:2259) /* conversion may lose significant bits */ #endif -#ifndef RTE_SCHED_OPTIMIZATIONS -#define RTE_SCHED_OPTIMIZATIONS 0 -#endif - -#if RTE_SCHED_OPTIMIZATIONS +#ifdef RTE_SCHED_VECTOR #include #endif @@ -1668,7 +1664,7 @@ grinder_schedule(struct rte_sched_port *port, uint32_t pos) return 1; } -#if RTE_SCHED_OPTIMIZATIONS +#ifdef RTE_SCHED_VECTOR static inline int grinder_pipe_exists(struct rte_sched_port *port, uint32_t base_pipe) -- 2.1.4