Skip to content

Commit 8dc7bf9

Browse files
megha-ajmeratmonjalo
authored andcommitted
sched: fix WRR parameter data type
wrr tokens getting truncated to uint8_t in wrr_store function() due to type mismatch. This patch changes the data type to uint16_t. Fixes: e16b06d ("sched: remove WRR from strict priority TC queues") Cc: [email protected] Signed-off-by: Megha Ajmera <[email protected]> Acked-by: Jasvinder Singh <[email protected]> Acked-by: Stephen Hemminger <[email protected]>
1 parent f9f773f commit 8dc7bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sched/rte_sched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct __rte_cache_aligned rte_sched_pipe {
6767
uint64_t tc_credits[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];
6868

6969
/* Weighted Round Robin (WRR) */
70-
uint8_t wrr_tokens[RTE_SCHED_BE_QUEUES_PER_PIPE];
70+
uint16_t wrr_tokens[RTE_SCHED_BE_QUEUES_PER_PIPE];
7171

7272
/* TC oversubscription */
7373
uint64_t tc_ov_credits;

0 commit comments

Comments
 (0)