[dpdk-stable] patch 'sched: fix traffic class oversubscription parameter' has been queued to stable release 20.11.2

Xueming Li xuemingl at nvidia.com
Mon May 10 18:02:36 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/12/21. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/1bcde228269a6148f5a10480aa11edbf307c246b

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 1bcde228269a6148f5a10480aa11edbf307c246b Mon Sep 17 00:00:00 2001
From: Savinay Dharmappa <savinay.dharmappa at intel.com>
Date: Wed, 21 Apr 2021 07:50:01 +0100
Subject: [PATCH] sched: fix traffic class oversubscription parameter
Cc: Luca Boccassi <bluca at debian.org>

[ upstream commit 3a91d2d138988e208b96a98a859fc3a0d9a9fe4d ]

This patch fixes the traffic class oversubscription watermark
value by initialising it with computed value of maximum watermark.

Fixes: ac6fcb841b0f ("sched: update subport rate dynamically")

Signed-off-by: Savinay Dharmappa <savinay.dharmappa at intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh at intel.com>
---
 lib/librte_sched/rte_sched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index 7c56880681..cd87e688e4 100644
--- a/lib/librte_sched/rte_sched.c
+++ b/lib/librte_sched/rte_sched.c
@@ -1249,7 +1249,6 @@ rte_sched_subport_config(struct rte_sched_port *port,
 #ifdef RTE_SCHED_SUBPORT_TC_OV
 		/* TC oversubscription */
 		s->tc_ov_wm_min = port->mtu;
-		s->tc_ov_wm = s->tc_ov_wm_max;
 		s->tc_ov_period_id = 0;
 		s->tc_ov = 0;
 		s->tc_ov_n = 0;
@@ -1277,6 +1276,7 @@ rte_sched_subport_config(struct rte_sched_port *port,
 #ifdef RTE_SCHED_SUBPORT_TC_OV
 		s->tc_ov_wm_max = rte_sched_time_ms_to_bytes(profile->tc_period,
 							s->pipe_tc_be_rate_max);
+		s->tc_ov_wm = s->tc_ov_wm_max;
 #endif
 		s->profile = subport_profile_id;
 
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-05-10 23:59:31.920889700 +0800
+++ 0208-sched-fix-traffic-class-oversubscription-parameter.patch	2021-05-10 23:59:26.670000000 +0800
@@ -1 +1 @@
-From 3a91d2d138988e208b96a98a859fc3a0d9a9fe4d Mon Sep 17 00:00:00 2001
+From 1bcde228269a6148f5a10480aa11edbf307c246b Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit 3a91d2d138988e208b96a98a859fc3a0d9a9fe4d ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -15 +17 @@
- lib/sched/rte_sched.c | 2 +-
+ lib/librte_sched/rte_sched.c | 2 +-
@@ -18 +20 @@
-diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c
+diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
@@ -20,2 +22,2 @@
---- a/lib/sched/rte_sched.c
-+++ b/lib/sched/rte_sched.c
+--- a/lib/librte_sched/rte_sched.c
++++ b/lib/librte_sched/rte_sched.c


More information about the stable mailing list