From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Chirossel Subject: [PATCH v3] lib/librte_sched: fix update tc_credits Date: Thu, 6 Jul 2017 15:44:27 +0200 Message-ID: <1499348668-2155-1-git-send-email-olivier.chirossel@gmail.com> Cc: Olivier Chirossel To: dev@dpdk.org Return-path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 2CBCE1C0B for ; Thu, 6 Jul 2017 15:44:50 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id x23so607770wrb.0 for ; Thu, 06 Jul 2017 06:44:50 -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 | 124 ++++++++++++++++++++++++++------ 2 files changed, 112 insertions(+), 22 deletions(-) -- 2.7.4