diff mbox

mlx4_core: request MSIX vectors as much as there CPU cores

Message ID 20100505113047.GA12242@mtldesk030.lab.mtl.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eli Cohen May 5, 2010, 11:30 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index e3e0d54..0559df4 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -969,7 +969,7 @@  static void mlx4_enable_msi_x(struct mlx4_dev *dev)
 
 	if (msi_x) {
 		nreq = min_t(int, dev->caps.num_eqs - dev->caps.reserved_eqs,
-			     num_possible_cpus() + 1);
+			     num_online_cpus() + 1);
 		entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL);
 		if (!entries)
 			goto no_msi;