diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-07-01 03:18:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-05 03:06:44 -0700 |
commit | 98f2d21f90278856b33e965d1d4bb756754e70f3 (patch) | |
tree | 4ba1f8ea24b124af161374ecca809e96c0bc4cbd /drivers | |
parent | 5952dde723077e5e0db43cbc9dfb00a4f47c42ef (diff) | |
download | linux-98f2d21f90278856b33e965d1d4bb756754e70f3.tar.bz2 |
myri10ge: set maximal number of default RSS queues
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 90153fc983cb..fa85cf1353fd 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c @@ -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)) |