Netdev List
 help / color / mirror / Atom feed
From: Roman Yeryomin <leroi.lists@gmail.com>
To: netdev@vger.kernel.org
Subject: [net, 3/6] net: korina: increase tx/rx ring sizes
Date: Tue, 17 Jan 2017 19:32:36 +0200	[thread overview]
Message-ID: <1484674356-22363-1-git-send-email-roman@advem.lv> (raw)

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@advem.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

             reply	other threads:[~2017-01-17 17:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17 17:32 Roman Yeryomin [this message]
2017-01-17 17:58 ` [net, 3/6] net: korina: increase tx/rx ring sizes David Miller
2017-01-17 18:27   ` Roman Yeryomin
2017-01-17 19:08     ` David Miller
2017-01-17 19:20     ` Eric Dumazet
2017-01-19 10:55       ` Roman Yeryomin
2017-01-19 13:37         ` Eric Dumazet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1484674356-22363-1-git-send-email-roman@advem.lv \
    --to=leroi.lists@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox