From: Junfeng Guo <junfeng.guo@intel.com>
To: qi.z.zhang@intel.com, xiaolong.ye@intel.com,
beilei.xing@intel.com, ferruh.yigit@intel.com
Cc: dev@dpdk.org, jia.guo@intel.com, junfeng.guo@intel.com,
simei.su@intel.com
Subject: [dpdk-dev] [PATCH v4 2/3] app/testpmd: support extended RSS offload types
Date: Wed, 8 Jul 2020 15:33:40 +0800 [thread overview]
Message-ID: <20200708073341.546583-3-junfeng.guo@intel.com> (raw)
In-Reply-To: <20200708073341.546583-1-junfeng.guo@intel.com>
This patch adds testpmd cmdline support for IPv6 prefix.
Signed-off-by: Junfeng Guo <junfeng.guo@intel.com>
---
app/test-pmd/cmdline.c | 6 ++++++
app/test-pmd/config.c | 3 +++
2 files changed, 9 insertions(+)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 81c87c8c3..4d4612395 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -2297,6 +2297,12 @@ cmd_config_rss_parsed(void *parsed_result,
rss_conf.rss_hf = ETH_RSS_GENEVE;
else if (!strcmp(res->value, "nvgre"))
rss_conf.rss_hf = ETH_RSS_NVGRE;
+ else if (!strcmp(res->value, "l3-pre32"))
+ rss_conf.rss_hf = ETH_RSS_L3_PRE32;
+ else if (!strcmp(res->value, "l3-pre48"))
+ rss_conf.rss_hf = ETH_RSS_L3_PRE48;
+ else if (!strcmp(res->value, "l3-pre64"))
+ rss_conf.rss_hf = ETH_RSS_L3_PRE64;
else if (!strcmp(res->value, "l3-src-only"))
rss_conf.rss_hf = ETH_RSS_L3_SRC_ONLY;
else if (!strcmp(res->value, "l3-dst-only"))
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 75013100f..5837b9011 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -119,6 +119,9 @@ const struct rss_type_info rss_type_table[] = {
{ "tcp", ETH_RSS_TCP },
{ "sctp", ETH_RSS_SCTP },
{ "tunnel", ETH_RSS_TUNNEL },
+ { "l3-pre32", ETH_RSS_L3_PRE32 },
+ { "l3-pre48", ETH_RSS_L3_PRE48 },
+ { "l3-pre64", ETH_RSS_L3_PRE64 },
{ "l3-src-only", ETH_RSS_L3_SRC_ONLY },
{ "l3-dst-only", ETH_RSS_L3_DST_ONLY },
{ "l4-src-only", ETH_RSS_L4_SRC_ONLY },
--
2.25.1
next prev parent reply other threads:[~2020-07-08 7:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-12 8:07 [dpdk-dev] [PATCH] net/ice: add RSS support for IPv6 prefix Junfeng Guo
2020-06-16 8:16 ` [dpdk-dev] [PATCH v2 0/3] " Junfeng Guo
2020-06-16 8:16 ` [dpdk-dev] [PATCH v2 1/3] ethdev: add new RSS types " Junfeng Guo
2020-07-06 11:59 ` Zhang, Qi Z
2020-07-07 10:20 ` Ferruh Yigit
2020-07-07 11:06 ` Thomas Monjalon
2020-07-08 9:45 ` Zhang, Qi Z
2020-07-08 9:57 ` Thomas Monjalon
2020-07-08 11:10 ` Zhang, Qi Z
2020-07-08 11:57 ` Thomas Monjalon
2020-07-08 12:05 ` Zhang, Qi Z
2020-07-08 12:26 ` Thomas Monjalon
2020-07-08 12:37 ` Zhang, Qi Z
2020-07-08 14:29 ` Thomas Monjalon
2020-07-09 0:33 ` Zhang, Qi Z
2020-06-16 8:16 ` [dpdk-dev] [PATCH v2 2/3] app/testpmd: support extended RSS offload types Junfeng Guo
2020-06-16 8:16 ` [dpdk-dev] [PATCH v2 3/3] net/ice: add RSS support for IPv6 prefix Junfeng Guo
2020-07-08 4:36 ` [dpdk-dev] [PATCH v3 0/3] " Junfeng Guo
2020-07-08 4:36 ` [dpdk-dev] [PATCH v3 1/3] ethdev: add new RSS types " Junfeng Guo
2020-07-08 4:36 ` [dpdk-dev] [PATCH v3 2/3] app/testpmd: support extended RSS offload types Junfeng Guo
2020-07-08 4:36 ` [dpdk-dev] [PATCH v3 3/3] net/ice: add RSS support for IPv6 prefix Junfeng Guo
2020-07-08 7:33 ` [dpdk-dev] [PATCH v4 0/3] " Junfeng Guo
2020-07-08 7:33 ` [dpdk-dev] [PATCH v4 1/3] ethdev: add new RSS types " Junfeng Guo
2020-07-08 7:33 ` Junfeng Guo [this message]
2020-07-08 7:33 ` [dpdk-dev] [PATCH v4 3/3] net/ice: add RSS support " Junfeng Guo
2020-07-08 8:24 ` [dpdk-dev] [PATCH v4 0/3] " Zhang, Qi Z
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=20200708073341.546583-3-junfeng.guo@intel.com \
--to=junfeng.guo@intel.com \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=jia.guo@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=simei.su@intel.com \
--cc=xiaolong.ye@intel.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).