[dpdk-dev] Unit for tx_rate in rte_eth_set_queue_rate_limit?
Simon Kågström
simon.kagstrom at netinsight.net
Tue Oct 20 14:20:38 CEST 2015
Hi!
What is the unit of the tx_rate parameter to the
rte_eth_set_queue_rate_limit function? It's documented as
/**
* Set the rate limitation for a queue on an Ethernet device.
*
* @param port_id
* The port identifier of the Ethernet device.
* @param queue_idx
* The queue id.
* @param tx_rate
* The tx rate allocated from the total link speed for this queue.
* @return
* - (0) if successful.
* - (-ENOTSUP) if hardware doesn't support this feature.
* - (-ENODEV) if *port_id* invalid.
* - (-EINVAL) if bad parameter.
*/
int rte_eth_set_queue_rate_limit(uint8_t port_id, uint16_t queue_idx,
uint16_t tx_rate);
I parse this as meaning a percentage of total link speed, i.e., on a 10
Gbps link, 50 would mean 5Gbps, 10 means 1Gbps etc. Is this correct?
// Simon
More information about the dev
mailing list