From 8f50b71d99a1a071b62c3b36a11a95398fc863c3 Mon Sep 17 00:00:00 2001 From: Jie Hai 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 Signed-off-by: Dongdong Liu Acked-by: Aman Singh --- 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 fec_mode auto|off|rs|baser", + .help_str = "set port 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