|
@@ -254,8 +254,7 @@ void mlx4_en_set_num_rx_rings(struct mlx4_en_dev *mdev)
|
|
DEF_RX_RINGS));
|
|
DEF_RX_RINGS));
|
|
|
|
|
|
num_rx_rings = mlx4_low_memory_profile() ? MIN_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 =
|
|
mdev->profile.prof[i].rx_ring_num =
|
|
rounddown_pow_of_two(num_rx_rings);
|
|
rounddown_pow_of_two(num_rx_rings);
|
|
}
|
|
}
|