Patchwork [RFC,net-next,(v2),09/14] bnx2: set maximal number of default RSS queues

login
register
mail settings
Submitter Yuval Mintz
Date June 25, 2012, 11:45 a.m.
Message ID <1340624745-8650-10-git-send-email-yuvalmin@broadcom.com>
Download mbox | patch
Permalink /patch/167052/
State RFC
Delegated to: David Miller
Headers show

Comments

Yuval Mintz - June 25, 2012, 11:45 a.m.
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>

Cc: Michael Chan <mchan@broadcom.com>
---
 drivers/net/ethernet/broadcom/bnx2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index 9b69a62..3f49285 100644
--- a/drivers/net/ethernet/broadcom/bnx2.c
+++ b/drivers/net/ethernet/broadcom/bnx2.c
@@ -6246,7 +6246,7 @@  bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
 static int
 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi)
 {
-	int cpus = num_online_cpus();
+	int cpus = netif_get_num_default_rss_queues();
 	int msix_vecs;
 
 	if (!bp->num_req_rx_rings)