|
@@ -41,7 +41,6 @@
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/io-mapping.h>
|
|
#include <linux/io-mapping.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/delay.h>
|
|
-#include <linux/netdevice.h>
|
|
|
|
#include <linux/kmod.h>
|
|
#include <linux/kmod.h>
|
|
|
|
|
|
#include <linux/mlx4/device.h>
|
|
#include <linux/mlx4/device.h>
|
|
@@ -1974,7 +1973,7 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
|
|
struct mlx4_priv *priv = mlx4_priv(dev);
|
|
struct mlx4_priv *priv = mlx4_priv(dev);
|
|
struct msix_entry *entries;
|
|
struct msix_entry *entries;
|
|
int nreq = min_t(int, dev->caps.num_ports *
|
|
int nreq = min_t(int, dev->caps.num_ports *
|
|
- min_t(int, netif_get_num_default_rss_queues() + 1,
|
|
|
|
|
|
+ min_t(int, num_online_cpus() + 1,
|
|
MAX_MSIX_P_PORT) + MSIX_LEGACY_SZ, MAX_MSIX);
|
|
MAX_MSIX_P_PORT) + MSIX_LEGACY_SZ, MAX_MSIX);
|
|
int i;
|
|
int i;
|
|
|
|
|