RDMA/hns: Fix port active speed
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 4 Aug 2023 01:27:08 +0000 (09:27 +0800)
committerLeon Romanovsky <leon@kernel.org>
Mon, 7 Aug 2023 13:46:58 +0000 (16:46 +0300)
commitdf1bcf90a66a10967a3a43510b42cb3566208011
tree61efad9c2b434266a29a6dd3f22432e0f6566266
parent14611b9b984125b2da5966d0725fdd89f6564c45
RDMA/hns: Fix port active speed

HW supports a variety of different speed, but the current speed
is fixed.

The real speed should be querried from ethernet.

Fixes: 9a4435375cd1 ("IB/hns: Add driver files for hns RoCE driver")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20230804012711.808069-2-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_main.c