sched: move grinder configuration

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>
This commit is contained in:
Megha Ajmera 2022-02-22 12:57:43 +00:00 committed by Thomas Monjalon
parent 3cba7cedd2
commit ec487c1896
3 changed files with 10 additions and 1 deletions

View File

@ -92,7 +92,6 @@
#undef RTE_SCHED_CMAN #undef RTE_SCHED_CMAN
#undef RTE_SCHED_COLLECT_STATS #undef RTE_SCHED_COLLECT_STATS
#undef RTE_SCHED_SUBPORT_TC_OV #undef RTE_SCHED_SUBPORT_TC_OV
#define RTE_SCHED_PORT_N_GRINDERS 8
/* rte_graph defines */ /* rte_graph defines */
#define RTE_GRAPH_BURST_SIZE 256 #define RTE_GRAPH_BURST_SIZE 256

View 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 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. 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 Running the Application
----------------------- -----------------------

View File

@ -23,6 +23,10 @@
#pragma warning(disable:2259) /* conversion may lose significant bits */ #pragma warning(disable:2259) /* conversion may lose significant bits */
#endif #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_TB_RATE_CONFIG_ERR (1e-7)
#define RTE_SCHED_WRR_SHIFT 3 #define RTE_SCHED_WRR_SHIFT 3
#define RTE_SCHED_MAX_QUEUES_PER_TC RTE_SCHED_BE_QUEUES_PER_PIPE #define RTE_SCHED_MAX_QUEUES_PER_TC RTE_SCHED_BE_QUEUES_PER_PIPE