在 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 <lihuis...@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 <lihuis...@huawei.com>
Signed-off-by: Min Hu (Connor) <humi...@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.

Thanks Ferruh.
.

Reply via email to