DPDK patches and discussions
 help / color / mirror / Atom feed
From: Yaacov Hazan <yaacovh@mellanox.com>
To: dev@dpdk.org
Cc: adrien.mazarguil@6wind.com, Yaacov Hazan <yaacovh@mellanox.com>
Subject: [dpdk-dev] [PATCH v2] mlx5: fix RETA table size
Date: Thu, 31 Mar 2016 12:21:08 +0300	[thread overview]
Message-ID: <1459416068-11773-1-git-send-email-yaacovh@mellanox.com> (raw)
In-Reply-To: <1459351639-18375-1-git-send-email-yaacovh@mellanox.com>

When the number of RX queues is not a power of two,
the RETA table is configured to its maximum size for
better balancing.

Testing showed that limiting its size to 256 improves performance
noticeably with little to no  impact on balancing results.

Fixes: ebb30ec64a68 ("mlx5: increase RETA table size")

Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com>
---
 drivers/net/mlx5/mlx5_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_defs.h b/drivers/net/mlx5/mlx5_defs.h
index 195440c..09207d9 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -52,7 +52,7 @@
 #define MLX5_PMD_TX_PER_COMP_REQ 64
 
 /* RSS Indirection table size. */
-#define RSS_INDIRECTION_TABLE_SIZE 512
+#define RSS_INDIRECTION_TABLE_SIZE 256
 
 /* Maximum number of Scatter/Gather Elements per Work Request. */
 #ifndef MLX5_PMD_SGE_WR_N
-- 
1.9.1

  parent reply	other threads:[~2016-03-31  9:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 15:27 [dpdk-dev] [PATCH] " Yaacov Hazan
2016-03-31  8:58 ` Adrien Mazarguil
2016-03-31  9:21 ` Yaacov Hazan [this message]
2016-03-31  9:36   ` [dpdk-dev] [PATCH v2] " Adrien Mazarguil
2016-03-31 13:00     ` Thomas Monjalon

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=1459416068-11773-1-git-send-email-yaacovh@mellanox.com \
    --to=yaacovh@mellanox.com \
    --cc=adrien.mazarguil@6wind.com \
    --cc=dev@dpdk.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;
as well as URLs for NNTP newsgroup(s).