]> git.droids-corp.org - dpdk.git/commitdiff
sched: move grinder configuration
authorMegha Ajmera <megha.ajmera@intel.com>
Tue, 22 Feb 2022 12:57:43 +0000 (12:57 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 24 Feb 2022 22:44:15 +0000 (23:44 +0100)
Grinder configuration is now moved to sched library.

Number of grinders can also modified by specifying
RTE_SCHED_PORT_N_GRINDERS=N in CFLAGS, where N is number of grinders.

Signed-off-by: Megha Ajmera <megha.ajmera@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
config/rte_config.h
doc/guides/sample_app_ug/qos_scheduler.rst
lib/sched/rte_sched.c

index 7a7da2f4e564b8d42af164e9b2d0e6d271b42d0f..d449af48109861859b294c62a36b256861c7ff1a 100644 (file)
@@ -92,7 +92,6 @@
 #undef RTE_SCHED_CMAN
 #undef RTE_SCHED_COLLECT_STATS
 #undef RTE_SCHED_SUBPORT_TC_OV
-#define RTE_SCHED_PORT_N_GRINDERS 8
 
 /* rte_graph defines */
 #define RTE_GRAPH_BURST_SIZE 256
index 49c14a00da5afbdc3ad99794545eaf352ee6ac33..b043022622723299cf992d69a70df36569737dd3 100644 (file)
@@ -45,6 +45,12 @@ The application is located in the ``qos_sched`` sub-directory.
     DPDK must be compiled defining *RTE_SCHED_COLLECT_STATS*, which can be done by changing the relevant
     entry in the ``config/rte_config.h`` file.
 
+.. note::
+
+    Number of grinders is currently set to 8.
+    This can be modified by specifying RTE_SCHED_PORT_N_GRINDERS=N
+    in CFLAGS, where N is number of grinders.
+
 Running the Application
 -----------------------
 
index 162fced252023fa2462fd45a2a9dd36213aa8085..0f9bd45784eaa89d07cb942dd528fb4b8290e5f3 100644 (file)
 #pragma warning(disable:2259) /* conversion may lose significant bits */
 #endif
 
+#ifndef RTE_SCHED_PORT_N_GRINDERS
+#define RTE_SCHED_PORT_N_GRINDERS 8
+#endif
+
 #define RTE_SCHED_TB_RATE_CONFIG_ERR          (1e-7)
 #define RTE_SCHED_WRR_SHIFT                   3
 #define RTE_SCHED_MAX_QUEUES_PER_TC           RTE_SCHED_BE_QUEUES_PER_PIPE