mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
RDMA/mana_ib: Use ib_get_eth_speed for reporting port speed
Replace hardcoded IB_WIDTH_4X/IB_SPEED_EDR with ib_get_eth_speed()
to report the actual link speed in mana_ib_query_port().
Fixes: 4bda1d5332 ("RDMA/mana_ib: Implement port parameters")
Link: https://patch.msgid.link/r/20260512094056.264827-1-kotaranov@linux.microsoft.com
Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
992ad0c012
commit
d28654518c
|
|
@ -600,8 +600,7 @@ int mana_ib_query_port(struct ib_device *ibdev, u32 port,
|
|||
props->phys_state = IB_PORT_PHYS_STATE_DISABLED;
|
||||
}
|
||||
|
||||
props->active_width = IB_WIDTH_4X;
|
||||
props->active_speed = IB_SPEED_EDR;
|
||||
ib_get_eth_speed(ibdev, port, &props->active_speed, &props->active_width);
|
||||
props->pkey_tbl_len = 1;
|
||||
if (mana_ib_is_rnic(dev)) {
|
||||
props->gid_tbl_len = 16;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user