net/hns3: fix link speed when port is down
authorHuisong Li <lihuisong@huawei.com>
Sun, 25 Apr 2021 12:06:29 +0000 (20:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 07:54:27 +0000 (09:54 +0200)
commit230d4940ed8e4fc0138fab2fdb2087553b8465dd
tree14d5c060a72879bde5aba8cce067434a0aad8f33
parent64308555d5bf8d7da8c3bde7d9c32550ac9c4382
net/hns3: fix link speed when port 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.c