[v5 6/9] net/dpaa: add Tx rate limiting DPAA PMD API

Stephen Hemminger stephen at networkplumber.org
Tue Jul 1 15:46:22 CEST 2025


On Tue,  1 Jul 2025 17:07:04 +0530
vanshika.shukla at nxp.com wrote:

> +/**
> + * Set TX rate limit
> + *
> + * @param port_id
> + *    The port identifier of the Ethernet device.
> + * @param burst
> + *    Max burst size(KBytes) of the Ethernet device.
> + *    0 - Disable TX rate limit.
> + * @param rate
> + *    Max rate(Kb/sec) of the Ethernet device.
> + *    0 - Disable TX rate limit.
> + * @return
> + *    0 - if successful.
> + *    <0 - if failed, with proper error code.
> + */
> +int
> +rte_pmd_dpaa_port_set_rate_limit(uint16_t port_id, uint16_t burst,
> +				 uint32_t rate);

New API's should be marked experimental


More information about the dev mailing list