]> git.droids-corp.org - dpdk.git/commitdiff
sched: enable SSE optimizations in config
authorStephen Hemminger <shemming@brocade.com>
Fri, 13 Nov 2015 17:58:34 +0000 (09:58 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 23:59:58 +0000 (00:59 +0100)
Make the SSE optimizations visible as a normal config option.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
config/common_bsdapp
config/common_linuxapp
lib/librte_sched/rte_sched.c

index 4be6bc02090882ea966bd42d2b6b4f008c92e174..63921047311ae28f17a271382aaedd576d7074ba 100644 (file)
@@ -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
index 5d81822705693b0b6aa3865812f2ff6760cc3bc9..4a68da42df73f12e3d867906a1777ce08827f740 100644 (file)
@@ -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
index a98c757e0ce14aa7f5cb65c4dd2a8cd16a4bf917..caf5f521535ba6c0140c554d3a137263b73bb392 100644 (file)
 #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)