From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DDFD8A04B5; Fri, 11 Sep 2020 10:39:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E4441C0D0; Fri, 11 Sep 2020 10:39:38 +0200 (CEST) Received: from huawei.com (szxga04-in.huawei.com [45.249.212.190]) by dpdk.org (Postfix) with ESMTP id CF67F1C0CD for ; Fri, 11 Sep 2020 10:39:36 +0200 (CEST) Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 52B0B66A2AA805405CA6; Fri, 11 Sep 2020 16:39:34 +0800 (CST) Received: from [127.0.0.1] (10.67.103.128) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 16:39:26 +0800 To: Ajit Khaparde CC: dpdk-dev , Thomas Monjalon , "Andrew Rybchenko" , Ferruh Yigit , References: <1599534347-20430-1-git-send-email-humin29@huawei.com> <1599722646-19188-1-git-send-email-humin29@huawei.com> From: "humin (Connor)" Message-ID: <03554a74-9627-3183-590f-74f3b9fbfa8f@huawei.com> Date: Fri, 11 Sep 2020 16:39:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.128] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH V4 0/3] add FEC support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, Ajit Khaparde: Forward error correction (FEC) is a bit error correction mode. It adds error correction information to data packets at the transmit end, and uses the error correction information to correct the bit errors generated during data packet transmission at the receive end. This improves signal quality. FEC ensures signal transmission quality in high-speed networks. DPDK application needs FEC information from device if user want to set FEC mode to ensures signal transmission quality. For example, if user wants to set FEC mode for device by "rte_eth_fec_set",FEC capability of device getting from "rte_eth_fec_get_capability" is needed by user. AS FEC mode should be within the limits of FEC capability of device. 在 2020/9/11 5:02, Ajit Khaparde 写道: > > On Thu, Sep 10, 2020 at 12:26 AM Min Hu (Connor) > wrote: > > This series add FEC support for ethdev. > > Can you tell why DPDK applications need this info? > > > Min Hu (Connor) (3): >   ethdev: introduce FEC API >   net/hns3: support FEC >   app/testpmd: add FEC command > >  app/test-pmd/cmdline.c                   | 219 > +++++++++++++++++++++++++++++++ >  app/test-pmd/config.c                    |  54 ++++++++ >  app/test-pmd/testpmd.h                   |   2 + >  drivers/net/hns3/hns3_cmd.h              |  19 ++- >  drivers/net/hns3/hns3_ethdev.c           | 156 ++++++++++++++++++++++ >  drivers/net/hns3/hns3_ethdev.h           |   1 + >  lib/librte_ethdev/rte_ethdev.c           |  50 +++++++ >  lib/librte_ethdev/rte_ethdev.h           |  75 +++++++++++ >  lib/librte_ethdev/rte_ethdev_core.h      |  77 +++++++++++ >  lib/librte_ethdev/rte_ethdev_version.map |   5 + >  10 files changed, 657 insertions(+), 1 deletion(-) > > -- > 2.7.4 >