From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pi6L56MeMxOTBDMPg2+u15xugUN1vvazce42QY9aM94=; b=nJCTbdHtIQS4Gz+yz3JhvbAjOautGwjQ7kWrCgNfuVFSSkEmpn5HDxbsrAiyfS+59t ElTqrgBTLeBG4K+b2hW0Rm6gQ4dtduBWoTK7UX632pen8brKdKPUlUjSahorfC78M+dO +Yx+TARoPpNQwKqv6Or651Xv2Zd6CfMwuBG4fx/tbrnOoJ3Lw54JpIrZ+waAXmWJ7z1K ORlM7bpoCZRdM4hry3hY/2wLWcrxGPosYXyIOBSFWHeU+jJttDmkaxzt38BqKS9pYAtW QJhViXi+stg35Zj5h5JqRKhiXehnzvt8Go1L+HyNqhvyEc3+6D/V8TIXuuyRPVaoVQVU V36Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pi6L56MeMxOTBDMPg2+u15xugUN1vvazce42QY9aM94=; b=JA1OTJJEHn6syPF2IZd/ISo/RU3ZmKAC2nlrA9/CJ4UART+drONbNVLcaweUgwWl6P JXyjsFK5wdxSpQpMhGFGFZa4mGebKJ20JRs299wjWcRz7gjiqT8Qx6z+2F50ResZZHpX prO53n1Zz8JxHW5QnZB/x/QxQpE+C5xKrf/UNKMV/HZBgW68nCfFTjxgYwPnw/SoW+2H X0NPl2nHfhnFWxrkSagYz+Za4QOBtWFhZBbHnHjEnQmudyzrdlNooFqURa2VK44BQXbq pDh/N2EVY9HdAXDWuNFD/ocvWiGZYTgrY8pHlplV04mfzJYv2Bs5OP5vWum2lfsIiTaY gzJg== X-Gm-Message-State: AIVw110r9OH7/ySCKfOllzA3XtEbozu3jTnlkZjC/2haPNqUkjJxYat7 DIRpsncmb7zmfnuK X-Received: by 10.28.215.145 with SMTP id o139mr27416091wmg.5.1499348690311; Thu, 06 Jul 2017 06:44:50 -0700 (PDT) Received: from localhost.localdomain (160.203.7.109.rev.sfr.net. [109.7.203.160]) by smtp.gmail.com with ESMTPSA id p27sm362556wmf.23.2017.07.06.06.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 06:44:49 -0700 (PDT) From: Olivier Chirossel To: dev@dpdk.org Cc: Olivier Chirossel Date: Thu, 6 Jul 2017 15:44:27 +0200 Message-Id: <1499348668-2155-1-git-send-email-olivier.chirossel@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH v3] lib/librte_sched: fix update tc_credits X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2017 13:44:51 -0000 --- 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