diff options
author | Haoyue Xu <xuhaoyue1@hisilicon.com> | 2023-07-21 17:20:52 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-07-30 14:55:37 +0300 |
commit | cb06b6b3f6cbc56c534587db2aac3e0958a4a314 (patch) | |
tree | 798bec1c305db57dc3872eb837dd7a2cc4269f9e /include | |
parent | 8b6573ff3420a2da1deb469a480dbc454745f784 (diff) | |
download | linux-stable-cb06b6b3f6cbc56c534587db2aac3e0958a4a314.tar.gz linux-stable-cb06b6b3f6cbc56c534587db2aac3e0958a4a314.tar.bz2 linux-stable-cb06b6b3f6cbc56c534587db2aac3e0958a4a314.zip |
RDMA/core: Get IB width and speed from netdev
Previously, there was no way to query the number of lanes for a network
card, so the same netdev_speed would result in a fixed pair of width and
speed. As network card specifications become more diverse, such fixed
mode is no longer suitable, so a method is needed to obtain the correct
width and speed based on the number of lanes.
This patch retrieves netdev lanes and speed from net_device and
translates them to IB width and speed.
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Luoyouming <luoyouming@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20230721092052.2090449-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions