[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1484674356-22363-1-git-send-email-roman@advem.lv>
Date: Tue, 17 Jan 2017 19:32:36 +0200
From: Roman Yeryomin <leroi.lists@...il.com>
To: netdev@...r.kernel.org
Subject: [net, 3/6] net: korina: increase tx/rx ring sizes
Having larger ring sizes almost eliminates rx fifo overflow, thus improving performance.
This patch reduces rx overflow occurence by approximately 1000 times (from ~25k down to ~25 times per 3M frames)
Signed-off-by: Roman Yeryomin <roman@...em.lv>
---
drivers/net/ethernet/korina.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c
index 45bd617..02f2364 100644
--- a/drivers/net/ethernet/korina.c
+++ b/drivers/net/ethernet/korina.c
@@ -80,8 +80,8 @@
#define NAPI_WEIGHT 64
/* the following must be powers of two */
-#define KORINA_NUM_RDS 64 /* number of receive descriptors */
-#define KORINA_NUM_TDS 64 /* number of transmit descriptors */
+#define KORINA_NUM_RDS 256 /* number of receive descriptors */
+#define KORINA_NUM_TDS 256 /* number of transmit descriptors */
/* KORINA_RBSIZE is the hardware's default maximum receive
* frame size in bytes. Having this hardcoded means that there
--
2.7.4
Powered by blists - more mailing lists