summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorInbar Karmy <inbark@mellanox.com>2017-10-10 12:28:35 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-10 13:11:22 -0700
commit80a8dc75ee674a111fea2ae1d02ff96535a309c2 (patch)
treec2a5df4626daf10faa221122d1331da0afe689df /drivers
parentb8d394367a631c2d749b3114e04dfb4d09624ddf (diff)
downloadlinux-80a8dc75ee674a111fea2ae1d02ff96535a309c2.tar.bz2
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/en_rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
index 8f9cb8abc497..a7866954d106 100644
--- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c
+++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
@@ -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);
}