On 1/23/2024 11:46 AM, Ferruh Yigit wrote: > On 1/22/2024 1:00 PM, Konstantin Ananyev wrote: >> CAUTION: This message has originated from an External Source. Please use >> proper judgment and caution when opening attachments, clicking links, or >> responding to this email. >> >> >>> From: Jerin Jacob <jer...@marvell.com> >>> >>> Introduce a new API to retrieve the number of used descriptors >>> in a Tx queue. Applications can leverage this API in the fast path to >>> inspect the Tx queue occupancy and take appropriate actions based on the >>> available free descriptors. >>> >>> A notable use case could be implementing Random Early Discard (RED) >>> in software based on Tx queue occupancy. >>> >>> Signed-off-by: Jerin Jacob <jer...@marvell.com> >>> Reviewed-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru> >>> Acked-by: Morten Brørup <m...@smartsharesystems.com> >>> >> >> Acked-by: Konstantin Ananyev <konstantin.anan...@huawei.com> >> > > Reviewed-by: Ferruh Yigit <ferruh.yi...@amd.com> > > Applied to dpdk-next-net/main, thanks. >
There is a build error related to the tracing object. As 'rte_eth_tx_queue_count()' is static inline, application needs to be able to access '__rte_eth_trace_tx_queue_count' tracing object, this is problem in shared library build. Needs to update '.../ethdev/version.map' and add '__rte_eth_trace_tx_queue_count'. I am doing the change in next-net and force push. FYI. Since there was no user of the 'rte_eth_tx_queue_count()' API, not able to detect the issue with this patch. But with testpmd support problem became visible.