From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 92EB2428E9; Sat, 8 Apr 2023 04:30:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF28D42D3E; Sat, 8 Apr 2023 04:29:34 +0200 (CEST) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id F151C42D32; Sat, 8 Apr 2023 04:29:32 +0200 (CEST) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4PtfLX0nJKzKrPT; Sat, 8 Apr 2023 10:28:52 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 8 Apr 2023 10:29:31 +0800 From: Dongdong Liu To: , , , CC: , , , Aman Singh , Yuying Zhang Subject: [PATCH 5/7] app/testpmd: add setting and querying of LLRS FEC mode Date: Sat, 8 Apr 2023 10:27:37 +0800 Message-ID: <20230408022740.14522-6-liudongdong3@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20230408022740.14522-1-liudongdong3@huawei.com> References: <20230408022740.14522-1-liudongdong3@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500017.china.huawei.com (7.221.188.110) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Jie Hai This patch supports setting and querying of LLRS FEC mode. Signed-off-by: Jie Hai Signed-off-by: Dongdong Liu --- 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 7b20bef4e9..38fa0f507c 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -11973,6 +11973,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; } @@ -12068,7 +12071,7 @@ cmd_set_port_fec_mode_parsed( static 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 096c218c12..f306d678f9 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -170,6 +170,10 @@ static const struct { .mode = RTE_ETH_FEC_RS, .name = "rs", }, + { + .mode = RTE_ETH_FEC_LLRS, + .name = "llrs", + }, }; static const struct { diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 8f23847859..fa1cea3ed6 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -1800,7 +1800,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.22.0