Commit 9cbb5760 authored by Yuval Mintz's avatar Yuval Mintz Committed by David S. Miller

vxge: set maximal number of default RSS queues

Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>

Cc: Jon Mason <jdmason@kudzu.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90b1ebe7
...@@ -3687,7 +3687,8 @@ static int __devinit vxge_config_vpaths( ...@@ -3687,7 +3687,8 @@ static int __devinit vxge_config_vpaths(
return 0; return 0;
if (!driver_config->g_no_cpus) 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; driver_config->vpath_per_dev = driver_config->g_no_cpus >> 1;
if (!driver_config->vpath_per_dev) if (!driver_config->vpath_per_dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment