Re: [dpdk-dev] [PATCH v2] lib/librte_sched: fix update tc_credits

2017-06-29 Thread Stephen Hemminger
On Thu, 29 Jun 2017 16:35:42 +0200 Olivier Chirossel wrote: > /* Subport TCs */ > if (unlikely(port->time >= subport->tc_time)) { > - subport->tc_credits[0] = subport->tc_credits_per_period[0]; > - subport->tc_credits[1] = subport->tc_credits_per_period[1]; > -

[dpdk-dev] [PATCH v2] lib/librte_sched: fix update tc_credits

2017-06-29 Thread Olivier Chirossel
Signed-off-by: Olivier Chirossel doc/guides/prog_guide/qos_framework.rst | 10 -- lib/librte_sched/rte_sched.c| 62 ++--- 2 files changed, 50 insertions(+), 22 deletions(-) diff --git a/doc/guides/prog_guide/qos_framework.rst b/doc/guides/prog_guide/

[dpdk-dev] [PATCH v2] lib/librte_sched: fix update tc_credits

2017-06-29 Thread Olivier Chirossel
Olivier Chirossel (1): lib/librte_sched: fix update tc_credits Actualy ( for small rate ) if tc_credits_per_period < packets length all packets are drop. Also the credits presents before the updade are loose, because tc_credits is set to tc_credits_per_period. The purpose of the