diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2009-08-06 19:27:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-06 19:27:51 -0700 |
commit | b6b912e0804dc1b3e856da3cc82fbe78b50e968c (patch) | |
tree | cc35371a7ad0caed0841183cf7356b398b1e9588 /drivers/net/mlx4/en_netdev.c | |
parent | a35ee541a66d11d26da30d3f6046dbddd073334e (diff) |
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>
Diffstat (limited to 'drivers/net/mlx4/en_netdev.c')
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index c8a24dcca76..f8bbc5a39e1 100644 --- a/drivers/net/mlx4/en_netdev.c +++ b/drivers/net/mlx4/en_netdev.c @@ -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); |