netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 10/13] bnx2x: Set default value of num_queues to 1 on 32-bit platforms
@ 2010-04-18 14:50 Vladislav Zolotarov
  2010-04-19  4:10 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Vladislav Zolotarov @ 2010-04-18 14:50 UTC (permalink / raw)
  To: Dave Miller; +Cc: Eilon Greenstein, netdev list, dmitry

The default was changed to save memory on 32bits systems.

Author: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
---
 drivers/net/bnx2x_main.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 2eb9a3b..a35def6 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -91,10 +91,17 @@ module_param(multi_mode, int, 0);
 MODULE_PARM_DESC(multi_mode, " Multi queue mode "
 			     "(0 Disable; 1 Enable (default))");
 
+#ifdef CONFIG_64BIT
 static int num_queues;
 module_param(num_queues, int, 0);
 MODULE_PARM_DESC(num_queues, " Number of queues for multi_mode=1"
 				" (default is as a number of CPUs)");
+#else
+static int num_queues = 1;
+module_param(num_queues, int, 0);
+MODULE_PARM_DESC(num_queues, " Number of queues for multi_mode=1"
+				" (default 1)");
+#endif
 
 static int disable_tpa;
 module_param(disable_tpa, int, 0);
-- 
1.6.3.3





^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-19  6:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 14:50 [PATCH 10/13] bnx2x: Set default value of num_queues to 1 on 32-bit platforms Vladislav Zolotarov
2010-04-19  4:10 ` David Miller
2010-04-19  6:06   ` Eilon Greenstein
2010-04-19  6:29     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).