net/hns3: fix link speed when VF device is down
authorHuisong Li <lihuisong@huawei.com>
Sat, 15 May 2021 00:52:38 +0000 (08:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 18 May 2021 10:30:14 +0000 (12:30 +0200)
commitd1ced85a7e7a193051e96c2d34a8961a2e3f96d9
treef9555d434e9701310a85f7210fc73a8f961be81b
parentb67bdfc8f6630934f3005ad531225c7203304661
net/hns3: fix link speed when VF device is down

When the port is link down state, it is meaningless to display the
port link speed. It should be an undefined state.

Fixes: 59fad0f32135 ("net/hns3: support link update operation")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c