[dpdk-dev] [PATCH] rte_sched: fix 64-bit support in rate functions

Hrvoje Habjanic hrvoje.habjanic at zg.ht.hr
Mon Jun 15 19:19:05 CEST 2020


Functions rte_sched_subport_config_pipe_profile_table and
pipe_profile_check should also have increased rate
arguments.

Fixes: 68c1f26d4236 (\"sched: support 64-bit values\")
Cc: jasvinder.singh at intel.com

Signed-off-by: Hrvoje Habjanic <hrvoje.habjanic at zg.ht.hr>
---
 lib/librte_sched/rte_sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c
index c0983ddda..be822057b 100644
--- a/lib/librte_sched/rte_sched.c
+++ b/lib/librte_sched/rte_sched.c
@@ -304,7 +304,7 @@ rte_sched_port_tc_queue(struct rte_sched_port *port, uint32_t qindex)
 
 static int
 pipe_profile_check(struct rte_sched_pipe_params *params,
-	uint32_t rate, uint16_t *qsize)
+	uint64_t rate, uint16_t *qsize)
 {
 	uint32_t i;
 
@@ -624,7 +624,7 @@ rte_sched_pipe_profile_convert(struct rte_sched_subport *subport,
 
 static void
 rte_sched_subport_config_pipe_profile_table(struct rte_sched_subport *subport,
-	struct rte_sched_subport_params *params, uint32_t rate)
+	struct rte_sched_subport_params *params, uint64_t rate)
 {
 	uint32_t i;
 
-- 
2.17.1



More information about the dev mailing list