From: Yongseok Koh <yskoh@mellanox.com>
To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com
Cc: dev@dpdk.org, shahafs@mellanox.com, Yongseok Koh <yskoh@mellanox.com>
Subject: [dpdk-dev] [PATCH v2 5/5] net/mlx5: increase number of strides
Date: Tue, 26 Jun 2018 05:39:25 -0700 [thread overview]
Message-ID: <20180626123925.37439-6-yskoh@mellanox.com> (raw)
In-Reply-To: <20180626123925.37439-1-yskoh@mellanox.com>
If WQE ID is used in CQE for Multi-Packet RQ, the ratio of CQE compression
drops a little bit. In order to reach to 100Gbps with 64B traffic, it is
needed to further save PCIe bandwidth by increasing the number of strides
in a WQE. It is now 64 by default but adjustable by a PMD parameter -
mprq_log_stride_num.
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@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 51124cdcc..79bb23d2a 100644
--- a/drivers/net/mlx5/mlx5_defs.h
+++ b/drivers/net/mlx5/mlx5_defs.h
@@ -96,7 +96,7 @@
#define MLX5_UAR_OFFSET (1ULL << 32)
/* Log 2 of the default number of strides per WQE for Multi-Packet RQ. */
-#define MLX5_MPRQ_STRIDE_NUM_N 4U
+#define MLX5_MPRQ_STRIDE_NUM_N 6U
/* Two-byte shift is disabled for Multi-Packet RQ. */
#define MLX5_MPRQ_TWO_BYTE_SHIFT 0
--
2.11.0
next prev parent reply other threads:[~2018-06-26 12:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-26 12:39 [dpdk-dev] [PATCH v2 0/5] net/mlx5: support new completion field for Multi-Packet RQ Yongseok Koh
2018-06-26 12:39 ` [dpdk-dev] [PATCH v2 1/5] net/mlx5: change return value of Rx completion poll Yongseok Koh
2018-06-26 12:39 ` [dpdk-dev] [PATCH v2 2/5] net/mlx5: add new fields in Rx completion entry Yongseok Koh
2018-06-26 12:39 ` [dpdk-dev] [PATCH v2 3/5] net/mlx5: add warning message for Multi-Packet RQ Yongseok Koh
2018-06-26 12:39 ` [dpdk-dev] [PATCH v2 4/5] net/mlx5: use stride index in Rx completion entry Yongseok Koh
2018-06-26 12:39 ` Yongseok Koh [this message]
2018-06-27 10:46 ` [dpdk-dev] [PATCH v2 0/5] net/mlx5: support new completion field for Multi-Packet RQ Shahaf Shuler
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=20180626123925.37439-6-yskoh@mellanox.com \
--to=yskoh@mellanox.com \
--cc=adrien.mazarguil@6wind.com \
--cc=dev@dpdk.org \
--cc=nelio.laranjeiro@6wind.com \
--cc=shahafs@mellanox.com \
/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).