From 8cc794af0aa718d762c60ca9d4f696f4b01084d6 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 12 Jan 2011 19:11:05 +0000 Subject: [PATCH] sfc: Restore the effect of the rss_cpus module parameter Commit 56a5503 ("sfc: Create multiple TX queues") accidentally disabled the rss_cpus module parameter. Signed-off-by: Ben Hutchings --- drivers/net/sfc/efx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index c2dc9a525dea3..002bac7438434 100644 --- a/drivers/net/sfc/efx.c +++ b/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"); -- 2.39.5