[PATCH v5 08/10] ethdev: add getter for per-queue Tx rate limit
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 25 03:24:04 CET 2026
On Tue, 24 Mar 2026 17:50:45 +0100
Vincent Jardin <vjardin at free.fr> wrote:
> The existing rte_eth_set_queue_rate_limit() API allows setting a
> per-queue Tx rate but provides no way to read it back. Applications
> such as grout are forced to maintain a shadow copy of the rate to
> be able to report it.
>
> Add rte_eth_get_queue_rate_limit() as the symmetric getter, following
> the established DPDK pattern (e.g. rte_eth_dev_set_mtu/get_mtu,
> rte_eth_dev_set_vlan_offload/get_vlan_offload).
>
> This adds:
> - eth_get_queue_rate_limit_t driver callback in ethdev_driver.h
> - rte_eth_get_queue_rate_limit() public experimental API (26.07)
> - Trace point matching the existing setter pattern
> - Generic testpmd command: show port <id> queue <id> rate
>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> Signed-off-by: Vincent Jardin <vjardin at free.fr>
> ---
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list