From: Stephen Hemminger Date: Fri, 13 Nov 2015 17:58:34 +0000 (-0800) Subject: sched: enable SSE optimizations in config X-Git-Tag: spdx-start~7966 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=42ec27a0178a;p=dpdk.git sched: enable SSE optimizations in config Make the SSE optimizations visible as a normal config option. Signed-off-by: Stephen Hemminger --- diff --git a/config/common_bsdapp b/config/common_bsdapp index 4be6bc0209..6392104731 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -405,6 +405,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 5d81822705..4a68da42df 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -414,6 +414,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 a98c757e0c..caf5f52153 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)