myri10ge: set maximal number of default RSS queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:56 +0000 (03:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2012 10:06:44 +0000 (03:06 -0700)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Cc: Jon Mason <mason@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/myricom/myri10ge/myri10ge.c

index 90153fc983cbad58cb3a68ae6ff4f9bb5c85762b..fa85cf1353fdabef18d5f64e15e159d2cbed55de 100644 (file)
@@ -3775,7 +3775,7 @@ static void myri10ge_probe_slices(struct myri10ge_priv *mgp)
 
        mgp->num_slices = 1;
        msix_cap = pci_find_capability(pdev, PCI_CAP_ID_MSIX);
-       ncpus = num_online_cpus();
+       ncpus = netif_get_num_default_rss_queues();
 
        if (myri10ge_max_slices == 1 || msix_cap == 0 ||
            (myri10ge_max_slices == -1 && ncpus < 2))