From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Chirossel Subject: [PATCH v2] lib/librte_sched: fix update tc_credits Date: Thu, 29 Jun 2017 16:35:41 +0200 Message-ID: <1498746942-1741-1-git-send-email-olivier.chirossel@gmail.com> Cc: Olivier Chirossel To: dev@dpdk.org Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 5AF452C2A for ; Thu, 29 Jun 2017 16:36:31 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id j85so2954526wmj.0 for ; Thu, 29 Jun 2017 07:36:31 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 patch is to fix that. 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(-) -- 2.7.4