bnx2: set maximal number of default RSS queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:58 +0000 (03:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2012 10:06:45 +0000 (03:06 -0700)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c

index 9eb7624639b96f3b2aea3dfa9b7f70ff187da6ef..1901da153312f38a1cb6b5d319e5f68e74ba891c 100644 (file)
@@ -6250,7 +6250,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)