sched: fix 64-bit rate
authorArchit Pandey <architpandeynitk@gmail.com>
Tue, 2 Jun 2020 08:55:28 +0000 (14:25 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jun 2020 22:52:31 +0000 (00:52 +0200)
64-bit support was missing from the functions pipe_profile_check
and rte_sched_subport_config_pipe_profile_table.

Fixes: 68c1f26d4236 ("sched: support 64-bit values")
Cc: stable@dpdk.org
Signed-off-by: Archit Pandey <architpandeynitk@gmail.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
lib/librte_sched/rte_sched.c

index f15a3b5..68a171b 100644 (file)
@@ -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;