cxgb3: set maximal number of default RSS queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:54 +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: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c

index abb6ce7c1b7ed2a67ee6b064377698df2efcb9c6..9b0874957df5b4dffc06e2ca22030231d6e346fc 100644 (file)
@@ -3050,7 +3050,7 @@ static struct pci_error_handlers t3_err_handler = {
 static void set_nqsets(struct adapter *adap)
 {
        int i, j = 0;
-       int num_cpus = num_online_cpus();
+       int num_cpus = netif_get_num_default_rss_queues();
        int hwports = adap->params.nports;
        int nqsets = adap->msix_nvectors - 1;