[dpdk-dev] mlx5 reta size is dynamic
Hanoch Haim (hhaim)
hhaim at cisco.com
Wed Mar 21 19:56:33 CET 2018
Hi mlx5 driver expert,
DPDK: 17.11
Any reason mlx5 driver change the rate table size dynamically based on the rx- queues# ?
There is a hidden assumption that the user wants to distribute the packets evenly which is not always correct.
/* If the requested number of RX queues is not a power of two, use the
* maximum indirection table size for better balancing.
* The result is always rounded to the next power of two. */
reta_idx_n = (1 << log2above((rxqs_n & (rxqs_n - 1)) ?
priv->ind_table_max_size :
rxqs_n));
thanks,
Hanoh
More information about the dev
mailing list