[PATCH v4 1/3] sched: fix subport profile ID

Megha Ajmera megha.ajmera at intel.com
Thu Oct 20 11:47:45 CEST 2022


In rte_sched_subport_config() API, subport_profile_id is not set correctly.

Fixes: ac6fcb841b0f ("sched: update subport rate dynamically")
Cc: cristian.dumitrescu at intel.com

Signed-off-by: Megha Ajmera <megha.ajmera at intel.com>
Acked by: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>
---
 lib/sched/rte_sched.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c
index c5fa9e4582..c91697131d 100644
--- a/lib/sched/rte_sched.c
+++ b/lib/sched/rte_sched.c
@@ -1257,8 +1257,6 @@ rte_sched_subport_config(struct rte_sched_port *port,
 
 		n_subports++;
 
-		subport_profile_id = 0;
-
 		/* Port */
 		port->subports[subport_id] = s;
 
-- 
2.25.1



More information about the stable mailing list