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
@@ -1011,9 +1011,6 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
/* Populate Rx default RSS mappings */
|
||||
mlx4_en_set_default_rss_map(priv, &priv->rss_map, priv->rx_ring_num *
|
||||
RSS_FACTOR, priv->rx_ring_num);
|
||||
/* Allocate page for receive rings */
|
||||
err = mlx4_alloc_hwq_res(mdev->dev, &priv->res,
|
||||
MLX4_EN_PAGE_SIZE, MLX4_EN_PAGE_SIZE);
|
||||
|
Reference in New Issue
Block a user