aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/neterion/vxge/vxge-main.c
diff options
context:
space:
mode:
authorYuval Mintz <yuvalmin@broadcom.com>2012-06-30 23:18:52 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-05 06:06:44 -0400
commit9cbb5760235272564f4bb0dd7f256fb7c510a2d5 (patch)
treec076c27cfebe4234fedd9a102be9983e399d1ae2 /drivers/net/ethernet/neterion/vxge/vxge-main.c
parent90b1ebe7af2592597e7568bb203d59f4918f76ad (diff)
vxge: 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 <jdmason@kudzu.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/neterion/vxge/vxge-main.c')
-rw-r--r--drivers/net/ethernet/neterion/vxge/vxge-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c
index 2578eb1f025d..2fd1edbc5e0e 100644
--- a/drivers/net/ethernet/neterion/vxge/vxge-main.c
+++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c
@@ -3687,7 +3687,8 @@ static int __devinit vxge_config_vpaths(
3687 return 0; 3687 return 0;
3688 3688
3689 if (!driver_config->g_no_cpus) 3689 if (!driver_config->g_no_cpus)
3690 driver_config->g_no_cpus = num_online_cpus(); 3690 driver_config->g_no_cpus =
3691 netif_get_num_default_rss_queues();
3691 3692
3692 driver_config->vpath_per_dev = driver_config->g_no_cpus >> 1; 3693 driver_config->vpath_per_dev = driver_config->g_no_cpus >> 1;
3693 if (!driver_config->vpath_per_dev) 3694 if (!driver_config->vpath_per_dev)