Bug 1012 - The rte_sched_queue_read_stats API requires a queue_id parameter but there is no public API to generate a queue_id
Summary: The rte_sched_queue_read_stats API requires a queue_id parameter but there is...
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: 21.11
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2022-05-17 16:33 CEST by Alan Dewar
Modified: 2022-05-17 16:33 CEST (History)
0 users



Attachments

Description Alan Dewar 2022-05-17 16:33:01 CEST
The rte_sched_queue_read_stats API has a queue_id parameter, but there is no public API to generate a queue_id from a combination of port, subport-id, pipe-id, traffic-class-id and wrr-queue-id.  

There is the static inline function called rte_sched_port_qindex that does what is required, perhaps it could be turned into a public API?

rte_sched_queue_read_stats is the only public API to return the current length of a specific queue.

Note You need to log in before you can comment on or make changes to this bug.