[dpdk-dev,v2,08/10] sched: allow enabling SSE optimizations in config
Commit Message
From: Stephen Hemminger <shemming@brocade.com>
Make the SSE optimizations visible as a normal config option.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
config/common_bsdapp | 1 +
config/common_linuxapp | 1 +
lib/librte_sched/rte_sched.c | 8 ++------
3 files changed, 4 insertions(+), 6 deletions(-)
@@ -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
@@ -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
@@ -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 <immintrin.h>
#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)