mlx4_en: Using real number of rings as RSS map size
There is no point in using more QPs then actual number of receive rings. If the RSS function for two streams gives the same result modulo number of rings, they will arrive to the same RX ring anyway. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a35ee541a6
commit
b6b912e080
@ -218,8 +218,9 @@ static void *mlx4_en_add(struct mlx4_dev *dev)
|
||||
mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_ETH) {
|
||||
mlx4_info(mdev, "Using %d tx rings for port:%d\n",
|
||||
mdev->profile.prof[i].tx_ring_num, i);
|
||||
mdev->profile.prof[i].rx_ring_num =
|
||||
min_t(int, dev->caps.num_comp_vectors, MAX_RX_RINGS);
|
||||
mdev->profile.prof[i].rx_ring_num = min_t(int,
|
||||
roundup_pow_of_two(dev->caps.num_comp_vectors),
|
||||
MAX_RX_RINGS);
|
||||
mlx4_info(mdev, "Defaulting to %d rx rings for port:%d\n",
|
||||
mdev->profile.prof[i].rx_ring_num, i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user