1 Star 0 Fork 82

叶青龙/dpdk

forked from src-openEuler/dpdk 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0297-app-testpmd-add-setting-and-querying-of-LLRS-FEC-mod.patch 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yeqinglong01/dpdk.git
git@gitee.com:yeqinglong01/dpdk.git
yeqinglong01
dpdk
dpdk
master

搜索帮助

371d5123 14472233 46e8bd33 14472233