net/mlx4_en: Increase number of default RX rings
Remove limitation of netif_get_num_default_rss_queues() from logic of RX rings default number. Signed-off-by: Inbar Karmy <inbark@mellanox.com> Signed-off-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8d394367a
commit
80a8dc75ee
|
@ -254,8 +254,7 @@ void mlx4_en_set_num_rx_rings(struct mlx4_en_dev *mdev)
|
|||
DEF_RX_RINGS));
|
||||
|
||||
num_rx_rings = mlx4_low_memory_profile() ? MIN_RX_RINGS :
|
||||
min_t(int, num_of_eqs,
|
||||
netif_get_num_default_rss_queues());
|
||||
min_t(int, num_of_eqs, num_online_cpus());
|
||||
mdev->profile.prof[i].rx_ring_num =
|
||||
rounddown_pow_of_two(num_rx_rings);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue