浏览代码

sfc: Restore the effect of the rss_cpus module parameter

Commit a4900ac ("sfc: Create multiple TX queues") accidentally
disabled the rss_cpus module parameter.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Ben Hutchings 14 年之前
父节点
当前提交
5b874e25c5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/net/sfc/efx.c

+ 3 - 0
drivers/net/sfc/efx.c

@@ -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");