Sync some patches for hns3 PMD, telemetry and testpmd. And main modifications are as follows: - backport some bugfixes for hns3 - revert Tx performance optimization for hns3 - add Rx/Tx descriptor dump feature for hns3 - refactor some RSS commands for testpmd - add ethdev telemetry private dump - add dmadev telemetry - sync telemetry lib Signed-off-by: Huisong Li <lihuisong@huawei.com> (cherry picked from commit 4f06d27eff9aa99c2e2073ac74328893990ed8ed)
72 lines
3.1 KiB
Diff
72 lines
3.1 KiB
Diff
From d1bfba3efc17445439ba794a63643a57b9b5be5a Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Fri, 21 Oct 2022 15:36:49 +0800
|
|
Subject: [PATCH 173/189] app/testpmd: unify name of L2 payload offload
|
|
|
|
Currently, the "port config all rss xx" command uses 'ether' name to match
|
|
and to set 'RTE_ETH_RSS_L2_PAYLOAD' offload. However, others RSS command,
|
|
such as, "port config <port_id> rss-hash-key" and "show port <port_id>
|
|
rss-hash key", use 'l2-payload' to represent this offload. So this patch
|
|
unifies the name of 'RTE_ETH_RSS_L2_PAYLOAD' offload.
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
|
|
---
|
|
app/test-pmd/cmdline.c | 12 ++++++------
|
|
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +-
|
|
2 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
|
|
index 26d95e64e0..c5e4c30c9f 100644
|
|
--- a/app/test-pmd/cmdline.c
|
|
+++ b/app/test-pmd/cmdline.c
|
|
@@ -793,8 +793,8 @@ static void cmd_help_long_parsed(void *parsed_result,
|
|
"receive buffers available.\n\n"
|
|
|
|
"port config all rss (all|default|ip|tcp|udp|sctp|"
|
|
- "ether|port|vxlan|geneve|nvgre|vxlan-gpe|ecpri|mpls|none|level-default|"
|
|
- "level-outer|level-inner|<flowtype_id>)\n"
|
|
+ "l2-payload|port|vxlan|geneve|nvgre|vxlan-gpe|ecpri|mpls|ipv4-chksum|"
|
|
+ "none|level-default|level-outer|level-inner|<flowtype_id>)\n"
|
|
" Set the RSS mode.\n\n"
|
|
|
|
"port config port-id rss reta (hash,queue)[,(hash,queue)]\n"
|
|
@@ -2187,7 +2187,7 @@ cmd_config_rss_parsed(void *parsed_result,
|
|
rss_conf.rss_hf = RTE_ETH_RSS_TCP;
|
|
else if (!strcmp(res->value, "sctp"))
|
|
rss_conf.rss_hf = RTE_ETH_RSS_SCTP;
|
|
- else if (!strcmp(res->value, "ether"))
|
|
+ else if (!strcmp(res->value, "l2_payload"))
|
|
rss_conf.rss_hf = RTE_ETH_RSS_L2_PAYLOAD;
|
|
else if (!strcmp(res->value, "port"))
|
|
rss_conf.rss_hf = RTE_ETH_RSS_PORT;
|
|
@@ -2308,9 +2308,9 @@ cmdline_parse_inst_t cmd_config_rss = {
|
|
.f = cmd_config_rss_parsed,
|
|
.data = NULL,
|
|
.help_str = "port config all rss "
|
|
- "all|default|eth|vlan|ip|tcp|udp|sctp|ether|port|vxlan|geneve|"
|
|
- "nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|none|level-default|"
|
|
- "level-outer|level-inner|ipv4-chksum|<flowtype_id>",
|
|
+ "all|default|eth|vlan|ip|tcp|udp|sctp|l2-payload|port|vxlan|geneve|"
|
|
+ "nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|ipv4-chksum|"
|
|
+ "none|level-default|level-outer|level-inner|<flowtype_id>",
|
|
.tokens = {
|
|
(void *)&cmd_config_rss_port,
|
|
(void *)&cmd_config_rss_keyword,
|
|
diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
index 94792d88cc..b75adcce55 100644
|
|
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
@@ -2285,7 +2285,7 @@ port config - RSS
|
|
|
|
Set the RSS (Receive Side Scaling) mode on or off::
|
|
|
|
- testpmd> port config all rss (all|default|eth|vlan|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|none)
|
|
+ testpmd> port config all rss (all|default|eth|vlan|ip|tcp|udp|sctp|l2-payload|port|vxlan|geneve|nvgre|vxlan-gpe|l2tpv3|esp|ah|pfcp|ecpri|mpls|none)
|
|
|
|
RSS is on by default.
|
|
|
|
--
|
|
2.23.0
|
|
|