Skip to content

Commit

Permalink
sfc: Restore the effect of the rss_cpus module parameter
Browse files Browse the repository at this point in the history
Commit a4900ac ("sfc: Create multiple TX queues") accidentally
disabled the rss_cpus module parameter.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
  • Loading branch information
Ben Hutchings committed Jan 13, 2011
1 parent 9765343 commit 5b874e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,9 @@ static int efx_wanted_channels(void)
int count;
int cpu;

if (rss_cpus)
return rss_cpus;

if (unlikely(!zalloc_cpumask_var(&core_mask, GFP_KERNEL))) {
printk(KERN_WARNING
"sfc: RSS disabled due to allocation failure\n");
Expand Down

0 comments on commit 5b874e2

Please sign in to comment.