[dpdk-dev] [PATCH 6/9] net/hns3: report the speed capability for PF
Ferruh Yigit
ferruh.yigit at intel.com
Thu Apr 15 02:57:10 CEST 2021
On 4/15/2021 1:39 AM, Ferruh Yigit wrote:
> On 4/13/2021 2:47 PM, Min Hu (Connor) wrote:
>> From: Huisong Li <lihuisong at huawei.com>
>>
>> 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 <lihuisong at huawei.com>
>> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
>
> <...>
>
>> @@ -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.
More information about the dev
mailing list