Skip to contentSkip to conversation

sched: add missing 64-bit rate values

PATCH Applied Archit Pandey 3 participants 3 messages Jun 2, 2020 – Jun 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: add missing 64-bit rate values

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")
---
 lib/librte_sched/rte_sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_sched/rte_sched.c +2 -2
index c0983ddda..be822057b 100644
@@ -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;
 
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 46 lines

-----Original Message-----
From: Archit Pandey <[email protected]>
Sent: Tuesday, June 2, 2020 9:55 AM
To: [email protected]
Cc: Archit Pandey <[email protected]>; Singh, Jasvinder <[email protected]>
Subject: [PATCH] sched: add missing 64-bit rate values

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")
---
 lib/librte_sched/rte_sched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_sched/rte_sched.c index renamed from lib/librte_sched/rte_sched.c +0 -0

c0983ddda..be822057b 100644

lib/librte_sched/rte_sched.c +2 -2
@@ -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;

Quoted 2 lines

--
2.25.1

+ CC [email protected]