From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NY8slTjCg9zUDnwPfvL9Olof1spw7pIhW1lmA1Us7/Q=; b=Dnzz3YhnGeTjFUoifS5+yLycZWn58TqzQ6Bo4d6G4fxRKY8pOMTZV8M+4MU6z84/Yf cUy0WrYQOR+b51gIbxQahAp6UupsRMr57Ara65INX62AaISzLYRuu2OjCe/9Zo7PHK98 7Y33iGZf+j0YrrFuoaGoMGXqe7OJGjg7+8tbkIIgaTPz12yQsSlJbgvwiSCTFuA/QaPh MpCv3I8eC3k5AsXI4CG2jmYD8x8H+WNO9ZSL3LzV2lsHJbFh1x9NSrDN+YNrZi+ZshzC TQM4ZDbOngmj9IAS9ekDxEbZbgkuQRSrPjq03/kQMAuW/I8JfCJFMDP2JeHwaa/dJT5f 8QvA== 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=NY8slTjCg9zUDnwPfvL9Olof1spw7pIhW1lmA1Us7/Q=; b=LgMnYdUepep5h9RU+yz/poXQCbZEM0d3fHduBFi0LsJuVefo1jT7txP+X7Dsj4G31G Zukh78mKQ3seZ9D/6ZYoG30c0F/p6DGzqZ2YaRC241EsJsIex8gWcIFwTT9nBICsHq/o 0zdR34DRl4WTzWo5TuJkbiW2S8h1bniR/1okb0uybJScxi96xZuErZfljPY1q2L7ZCIe Q8k+aEgW8rKzCiT/9rIBv9FxJCC49xXmyc4j+xVPcSBV1oKZ3K4fMf3PEkCdvy3Eb0eI p+7nGOAsDqVfBLMw+OfgpQjs1ljGv0CDq6+KVKA6NVYB3fMbpaXc+2ztwH/JfCNyyUim MVvA== X-Gm-Message-State: AKS2vOyOaSChuglATrTl4VVByyL58VVMCBEuk+ncUSHA+MT+LXXdpJLW Ef+rBfhSSAEw1cTV X-Received: by 10.28.69.9 with SMTP id s9mr12371141wma.71.1498746991516; Thu, 29 Jun 2017 07:36:31 -0700 (PDT) Received: from localhost.localdomain (160.203.7.109.rev.sfr.net. [109.7.203.160]) by smtp.gmail.com with ESMTPSA id 24sm5513908wrw.0.2017.06.29.07.36.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 07:36:30 -0700 (PDT) From: Olivier Chirossel To: dev@dpdk.org Cc: Olivier Chirossel Date: Thu, 29 Jun 2017 16:35:41 +0200 Message-Id: <1498746942-1741-1-git-send-email-olivier.chirossel@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH v2] 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, 29 Jun 2017 14:36:32 -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 | 62 ++++++++++++++++++++++----------- 2 files changed, 50 insertions(+), 22 deletions(-) -- 2.7.4