Re: [dpdk-dev] [PATCH v4 02/11] sched: add config flexibility to tc queue sizes

2019-07-17 Thread Singh, Jasvinder
> > > > /** 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

Re: [dpdk-dev] [PATCH v4 02/11] sched: add config flexibility to tc queue sizes

2019-07-17 Thread Singh, Jasvinder
> > > > /* 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++) { > >

Re: [dpdk-dev] [PATCH v4 02/11] sched: add config flexibility to tc queue sizes

2019-07-15 Thread Dumitrescu, Cristian
> -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

Re: [dpdk-dev] [PATCH v4 02/11] sched: add config flexibility to tc queue sizes

2019-07-15 Thread Dumitrescu, Cristian
> -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

[dpdk-dev] [PATCH v4 02/11] sched: add config flexibility to tc queue sizes

2019-07-12 Thread Jasvinder Singh
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