Bugzilla – Bug 1219783
[IRDMA] irdma reporting incorrect speed
Last modified: 2024-02-09 17:05:31 UTC
grep . /sys/class/infiniband/*/ports/1/rate /sys/class/infiniband/irdma0/ports/1/rate:100 Gb/sec (4X EDR) /sys/class/infiniband/irdma1/ports/1/rate:100 Gb/sec (4X EDR) grep . /sys/class/net/*/speed 2>/dev/null /sys/class/net/eno1/speed:1000 /sys/class/net/eth1/speed:1000 For a 40g adapter the speed reported is grossly wrong. Looks like SLES 15.5 is missing the following upstream commit: 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>