Sync some patchs from upstreaming about FEC feature. Patchs are as follow: - net/hns3: fix FEC mode for 200G ports - net/hns3: fix FEC mode check error - net/hns3: fix missing FEC capability - ethdev: introduce low latency RS FEC - app/testpmd: add setting and querying of LLRS FEC mode - net/hns3: add LLRS FEC mode support for 200G ports - net/hns3: get current FEC capability from firmware (cherry picked from commit 9266c3e618cf38cde9cd630c88a1a571064f825f)
73 lines
2.3 KiB
Diff
73 lines
2.3 KiB
Diff
From 8f50b71d99a1a071b62c3b36a11a95398fc863c3 Mon Sep 17 00:00:00 2001
|
|
From: Jie Hai <haijie1@huawei.com>
|
|
Date: Sat, 8 Apr 2023 10:27:37 +0800
|
|
Subject: app/testpmd: add setting and querying of LLRS FEC mode
|
|
|
|
[ upstream commit 6cb1eaa6f2cd024a8c56e15e4a23ada7f9006aae ]
|
|
|
|
This patch supports setting and querying of LLRS FEC mode.
|
|
|
|
Signed-off-by: Jie Hai <haijie1@huawei.com>
|
|
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
|
|
Acked-by: Aman Singh <aman.deep.singh@intel.com>
|
|
---
|
|
app/test-pmd/cmdline.c | 5 ++++-
|
|
app/test-pmd/config.c | 4 ++++
|
|
doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +-
|
|
3 files changed, 9 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
|
|
index 9e0e725913..0d9c7d449c 100644
|
|
--- a/app/test-pmd/cmdline.c
|
|
+++ b/app/test-pmd/cmdline.c
|
|
@@ -17078,6 +17078,9 @@ cmd_show_fec_mode_parsed(void *parsed_result,
|
|
case RTE_ETH_FEC_MODE_CAPA_MASK(RS):
|
|
strlcpy(buf, "rs", sizeof(buf));
|
|
break;
|
|
+ case RTE_ETH_FEC_MODE_CAPA_MASK(LLRS):
|
|
+ strlcpy(buf, "llrs", sizeof(buf));
|
|
+ break;
|
|
default:
|
|
return;
|
|
}
|
|
@@ -17173,7 +17176,7 @@ cmd_set_port_fec_mode_parsed(
|
|
cmdline_parse_inst_t cmd_set_fec_mode = {
|
|
.f = cmd_set_port_fec_mode_parsed,
|
|
.data = NULL,
|
|
- .help_str = "set port <port_id> fec_mode auto|off|rs|baser",
|
|
+ .help_str = "set port <port_id> fec_mode auto|off|rs|baser|llrs",
|
|
.tokens = {
|
|
(void *)&cmd_set_port_fec_mode_set,
|
|
(void *)&cmd_set_port_fec_mode_port,
|
|
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
|
|
index 78af232a8a..22c63e214e 100644
|
|
--- a/app/test-pmd/config.c
|
|
+++ b/app/test-pmd/config.c
|
|
@@ -167,6 +167,10 @@ static const struct {
|
|
.mode = RTE_ETH_FEC_RS,
|
|
.name = "rs",
|
|
},
|
|
+ {
|
|
+ .mode = RTE_ETH_FEC_LLRS,
|
|
+ .name = "llrs",
|
|
+ },
|
|
};
|
|
|
|
static void
|
|
diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
index e0edd349bc..ecf89aa46c 100644
|
|
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
|
|
@@ -1993,7 +1993,7 @@ Set fec mode
|
|
|
|
Set fec mode for a specific port::
|
|
|
|
- testpmd> set port (port_id) fec_mode auto|off|rs|baser
|
|
+ testpmd> set port (port_id) fec_mode auto|off|rs|baser|llrs
|
|
|
|
Config Sample actions list
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
--
|
|
2.23.0
|
|
|