> >
> > /** Number of traffic classes per pipe (as well as subport).
> > - * Cannot be changed.
> > */
> > -#define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE4
> > +#define RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE\
> > +(RTE_SCHED_QUEUES_PER_PIPE - RTE_SCHED_BE_QUEUES_PER_PIPE + 1)
> >
> > /** N
> >
> > /* TC rate: non-zero, less than pipe rate */
> > - for (i = 0; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++) {
> > - if (params->tc_rate[i] == 0 ||
> > - params->tc_rate[i] > params->tb_rate)
> > + for (i = 0; i < RTE_SCHED_TRAFFIC_CLASS_BE; i++) {
> >
> -Original Message-
> From: Singh, Jasvinder
> Sent: Friday, July 12, 2019 11:57 AM
> To: dev@dpdk.org
> Cc: Dumitrescu, Cristian ; Tovar, AbrahamX
> ; Krakowiak, LukaszX
>
> Subject: [PATCH v4 02/11] sched: add config flexibility to tc queue sizes
>
> Add support for zero queue sizes
> -Original Message-
> From: Singh, Jasvinder
> Sent: Friday, July 12, 2019 11:57 AM
> To: dev@dpdk.org
> Cc: Dumitrescu, Cristian ; Tovar, AbrahamX
> ; Krakowiak, LukaszX
>
> Subject: [PATCH v4 02/11] sched: add config flexibility to tc queue sizes
>
> Add support for zero queue sizes
Add support for zero queue sizes of the traffic classes. The queues
which are not used can be set to zero size. This helps in reducing
memory footprint of the hierarchical scheduler.
Signed-off-by: Jasvinder Singh
Signed-off-by: Abraham Tovar
Signed-off-by: Lukasz Krakowiak
---
lib/librte_sche
5 matches
Mail list logo