Skip to content

Commit

Permalink
vxge: set maximal number of default RSS queues
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yuval Mintz authored and David S. Miller committed Jul 5, 2012
1 parent 90b1ebe commit 9cbb576
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/neterion/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9cbb576

Please sign in to comment.