]> git.hungrycats.org Git - linux/commit
RDMA/hns: Fix port active speed
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 4 Aug 2023 01:27:08 +0000 (09:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:29 +0000 (09:48 +0200)
commitca0d8f408a455c13d0fa2df93b16dd88f878ebf1
treeb4ad7accdb776da275c80b3cb7cbc3fdbe295b1e
parent192740d0b9c58f29de456e7e9df9a527f1aa38d2
RDMA/hns: Fix port active speed

[ Upstream commit df1bcf90a66a10967a3a43510b42cb3566208011 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_main.c