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 B9E87A0562; Thu, 15 Apr 2021 03:16:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C8F0161DD8; Thu, 15 Apr 2021 03:16:48 +0200 (CEST) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mails.dpdk.org (Postfix) with ESMTP id 00512161DAE for ; Thu, 15 Apr 2021 03:16:45 +0200 (CEST) Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FLLwp68VhzjZqy for ; Thu, 15 Apr 2021 09:14:50 +0800 (CST) Received: from [10.67.103.128] (10.67.103.128) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Thu, 15 Apr 2021 09:16:38 +0800 To: Ferruh Yigit , References: <1618321639-57642-1-git-send-email-humin29@huawei.com> <1618321639-57642-7-git-send-email-humin29@huawei.com> <9ffcb199-d4e7-087d-85ff-d935285a0b3e@intel.com> From: "Min Hu (Connor)" Message-ID: <2f0483ae-d4aa-f55a-167e-9daac20782a5@huawei.com> Date: Thu, 15 Apr 2021 09:16:39 +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: <9ffcb199-d4e7-087d-85ff-d935285a0b3e@intel.com> 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 6/9] net/hns3: report the speed capability for PF 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 Sender: "dev" 在 2021/4/15 8:57, Ferruh Yigit 写道: > On 4/15/2021 1:39 AM, Ferruh Yigit wrote: >> On 4/13/2021 2:47 PM, Min Hu (Connor) wrote: >>> From: Huisong Li >>> >>> The speed capability of the device can be reported to the upper-layer >>> app >>> in rte_eth_dev_info_get API. In this API, the speed capability is >>> derived >>> from the 'supported_speed', which is the speed capability actually >>> supported by the NIC. The value of the 'supported_speed' is obtained >>> once in the probe stage and may be updated in the scheduled task to deal >>> with the change of the transmission interface. >>> >>> Signed-off-by: Huisong Li >>> Signed-off-by: Min Hu (Connor) >> >> <...> >> >>> @@ -2688,6 +2749,7 @@ hns3_dev_infos_get(struct rte_eth_dev *eth_dev, >>> struct rte_eth_dev_info *info) >>>           .nb_mtu_seg_max = hw->max_non_tso_bd_num, >>>       }; >>> +    info->speed_capa = hns3_get_speed_capa(hw); >> >> Can you please update 'hns3.ini', to advertise 'Speed capabilities' >> support? > > 'hns3.ini' added while merging, please verify the final commit. > Thanks Ferruh. > .