net/hns3: report speed capability for PF
authorHuisong Li <lihuisong@huawei.com>
Tue, 13 Apr 2021 13:47:16 +0000 (21:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 15 Apr 2021 00:55:04 +0000 (02:55 +0200)
commit09e0de1f411b36e204233357fc04e520c6a1f892
treee34b20d9d76f727abe03a8f74e96caf99acd1e38
parentca0388782ca234db5658eba7d4ae2d2291aaade2
net/hns3: report speed capability for PF

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@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
doc/guides/nics/features/hns3.ini
drivers/net/hns3/hns3_ethdev.c