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 C5158A0A0A; Sat, 23 Jan 2021 10:09:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 213BC140E59; Sat, 23 Jan 2021 10:09:26 +0100 (CET) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id 43904140E50 for ; Sat, 23 Jan 2021 10:08:56 +0100 (CET) Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DN9GG73dlzjBTD; Sat, 23 Jan 2021 17:05:58 +0800 (CST) Received: from [10.67.103.119] (10.67.103.119) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 23 Jan 2021 17:06:49 +0800 To: Ferruh Yigit , dev CC: , "lihuisong (C)" References: <63bca434-ae3a-8dac-4d9d-fac0ade7be25@huawei.com> <1cc591cf-4217-7830-b496-934d0c0c8695@intel.com> From: oulijun Message-ID: <18e2c640-e5eb-ff55-9c79-6d6aac80f7d6@huawei.com> Date: Sat, 23 Jan 2021 17:06:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <1cc591cf-4217-7830-b496-934d0c0c8695@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.119] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [RFC] some questions for speed_capa usage 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/1/18 19:23, Ferruh Yigit 写道: > On 1/18/2021 10:27 AM, oulijun wrote: >> Hi, >> >> >> The 'speed_capa' will be reported in rte_eth_dev_info_get API. How >> should users use the field? >> >> 1) The driver reports only the capabilities supported by the NIC, and >> users only obtain the capabilities. >> Maybe, there is a case that a rate bit in 'speed_capa' is not >> supported by the current transmission medium, >> such as, copper cable optical modules and optical interface modules. >> >> 2) The field is used only to inform users of the speed_capa supported >> by the current transmission medium. >> And users set the fixed speed or auto-negotiation by using >> 'link_speeds' according to the field. >> >> According to the existing implementations of all drivers, it seems >> that both of the above behaviors exist. >> >> How should we report and use it? >> > > Hi Lijun, > > When the driver reports the capabilities supported by the NIC, we tend > to mark this feature as partially supported. > > The expectation is the driver report the capability for the current > configuration, the PHY/FW/transmission medium, whatever it is. > > Driver should return the current supported values so that application > can select one, as you said. > Thank you for your answer. I see. > Regards, > ferruh > . >