Skip to content

RDMA/irdma: Report the correct link speed

Kamal Heib requested to merge kheib/centos-stream-9:bz2131200 into main

Bugzilla: https://bugzilla.redhat.com/2131200
Upstream: rdma/for-next

commit 4eace75e0853273755b878ffa9cce6de84df975a
Author: Shiraz Saleem shiraz.saleem@intel.com
Date: Fri Nov 4 18:49:57 2022 -0500

RDMA/irdma: Report the correct link speed  

The active link speed is currently hard-coded in irdma_query_port due  
to which the port rate in ibstatus does reflect the active link speed.  

Call ib_get_eth_speed in irdma_query_port to get the active link speed.  

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")  
Reported-by: Kamal Heib <kamalheib1@gmail.com>  
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>  
Link: https://lore.kernel.org/r/20221104234957.1135-1-shiraz.saleem@intel.com  
Signed-off-by: Leon Romanovsky <leon@kernel.org>  

Signed-off-by: Kamal Heib kheib@redhat.com

Merge request reports