From: Helin Zhang <helin.zhang@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH RFC 7/7] app/testpmd: support new rss offloads
Date: Fri, 19 Dec 2014 15:26:45 +0800 [thread overview]
Message-ID: <1418974005-15536-8-git-send-email-helin.zhang@intel.com> (raw)
In-Reply-To: <1418974005-15536-1-git-send-email-helin.zhang@intel.com>
RSS offloads supported 'ip' and 'udp' only, which did not
demonstrate all of the hardware capabilities. The modifications
adds support of new RSS offloads of 'tcp', 'sctp' and 'all'.
Signed-off-by: Helin Zhang <helin.zhang@intel.com>
---
app/test-pmd/cmdline.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index e7bab0c..cd321e9 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -588,7 +588,7 @@ static void cmd_help_long_parsed(void *parsed_result,
" Set crc-strip/rx-checksum/hardware-vlan/drop_en"
" for ports.\n\n"
- "port config all rss (ip|udp|none)\n"
+ "port config all rss (all|ip|tcp|udp|sctp|none)\n"
" Set the RSS mode.\n\n"
"port config port-id rss reta (hash,queue)[,(hash,queue)]\n"
@@ -1382,10 +1382,17 @@ cmd_config_rss_parsed(void *parsed_result,
struct rte_eth_rss_conf rss_conf;
uint8_t i;
- if (!strcmp(res->value, "ip"))
+ if (!strcmp(res->value, "all"))
+ rss_conf.rss_hf = ETH_RSS_IP | ETH_RSS_TCP |
+ ETH_RSS_UDP | ETH_RSS_SCTP;
+ else if (!strcmp(res->value, "ip"))
rss_conf.rss_hf = ETH_RSS_IP;
else if (!strcmp(res->value, "udp"))
rss_conf.rss_hf = ETH_RSS_UDP;
+ else if (!strcmp(res->value, "tcp"))
+ rss_conf.rss_hf = ETH_RSS_TCP;
+ else if (!strcmp(res->value, "sctp"))
+ rss_conf.rss_hf = ETH_RSS_SCTP;
else if (!strcmp(res->value, "none"))
rss_conf.rss_hf = 0;
else {
@@ -1406,12 +1413,13 @@ cmdline_parse_token_string_t cmd_config_rss_all =
cmdline_parse_token_string_t cmd_config_rss_name =
TOKEN_STRING_INITIALIZER(struct cmd_config_rss, name, "rss");
cmdline_parse_token_string_t cmd_config_rss_value =
- TOKEN_STRING_INITIALIZER(struct cmd_config_rss, value, "ip#udp#none");
+ TOKEN_STRING_INITIALIZER(struct cmd_config_rss, value,
+ "all#ip#tcp#udp#sctp#none");
cmdline_parse_inst_t cmd_config_rss = {
.f = cmd_config_rss_parsed,
.data = NULL,
- .help_str = "port config all rss ip|udp|none",
+ .help_str = "port config all rss all|ip|tcp|udp|sctp|none",
.tokens = {
(void *)&cmd_config_rss_port,
(void *)&cmd_config_rss_keyword,
--
1.9.3
next prev parent reply other threads:[~2014-12-19 7:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 7:26 [dpdk-dev] [PATCH RFC 0/7] unification of flow types and RSS offload types Helin Zhang
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 1/7] app/test-pmd: code style fix Helin Zhang
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 2/7] ethdev: " Helin Zhang
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 3/7] i40e: " Helin Zhang
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 4/7] ethdev: fix of calculating the size of flow type mask array Helin Zhang
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 5/7] ethdev: unification of flow types Helin Zhang
2014-12-19 14:59 ` Ananyev, Konstantin
2014-12-22 2:33 ` Zhang, Helin
2014-12-19 7:26 ` [dpdk-dev] [PATCH RFC 6/7] ethdev: unification of RSS offload types Helin Zhang
2014-12-19 7:26 ` Helin Zhang [this message]
2015-01-12 6:17 ` [dpdk-dev] [PATCH RFC 0/7] unification of flow types and " Zhang, Helin
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=1418974005-15536-8-git-send-email-helin.zhang@intel.com \
--to=helin.zhang@intel.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).