* [PATCH 11/13] forcedeth: performance changes
@ 2009-03-05 18:02 Ayaz Abdulla
0 siblings, 0 replies; only message in thread
From: Ayaz Abdulla @ 2009-03-05 18:02 UTC (permalink / raw)
To: Manfred Spraul, Jeff Garzik, Andrew Morton, David S. Miller,
nedev
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
This patch modifies the throughput mode poll settings to reduce the
number of interrupts. This is only used by older hardware that need a
timer irq in throughput mode.
Secondly, this patch increases the default rx ring from 128 to 512. This
drastically improves bandwidth utilization for small packets sizes i.e
512 bytes.
Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
[-- Attachment #2: patch-forcedeth-perf --]
[-- Type: text/plain, Size: 749 bytes --]
--- old/drivers/net/forcedeth.c 2009-03-05 10:46:55.000000000 -0800
+++ new/drivers/net/forcedeth.c 2009-03-05 10:47:10.000000000 -0800
@@ -128,7 +128,7 @@
* NVREG_POLL_DEFAULT=97 would result in an interval length of 1 ms
*/
NvRegPollingInterval = 0x00c,
-#define NVREG_POLL_DEFAULT_THROUGHPUT 970 /* backup tx cleanup if loop max reached */
+#define NVREG_POLL_DEFAULT_THROUGHPUT 65535 /* backup tx cleanup if loop max reached */
#define NVREG_POLL_DEFAULT_CPU 13
NvRegMSIMap0 = 0x020,
NvRegMSIMap1 = 0x024,
@@ -463,7 +463,7 @@
/* General driver defaults */
#define NV_WATCHDOG_TIMEO (5*HZ)
-#define RX_RING_DEFAULT 128
+#define RX_RING_DEFAULT 512
#define TX_RING_DEFAULT 256
#define RX_RING_MIN 128
#define TX_RING_MIN 64
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-05 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-05 18:02 [PATCH 11/13] forcedeth: performance changes Ayaz Abdulla
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).