vxge: set maximal number of default RSS queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:52 +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 <jdmason@kudzu.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/vxge/vxge-main.c

index 2578eb1f025d026228facd6848d1b51f6d157c84..2fd1edbc5e0e1178db6a0ddf0c0b0eaac513bb95 100644 (file)
@@ -3687,7 +3687,8 @@ static int __devinit vxge_config_vpaths(
                        return 0;
 
                if (!driver_config->g_no_cpus)
-                       driver_config->g_no_cpus = num_online_cpus();
+                       driver_config->g_no_cpus =
+                               netif_get_num_default_rss_queues();
 
                driver_config->vpath_per_dev = driver_config->g_no_cpus >> 1;
                if (!driver_config->vpath_per_dev)