linux/drivers/infiniband
Kamal Heib 28b0865714 RDMA/core: Fix reported speed and width
When the returned speed from __ethtool_get_link_ksettings() is
SPEED_UNKNOWN this will lead to reporting a wrong speed and width for
providers that uses ib_get_eth_speed(), fix that by defaulting the
netdev_speed to SPEED_1000 in case the returned value from
__ethtool_get_link_ksettings() is SPEED_UNKNOWN.

Fixes: d41861942f ("IB/core: Add generic function to extract IB speed from netdev")
Link: https://lore.kernel.org/r/20200902124304.170912-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-09-02 16:58:54 -03:00
..
core RDMA/core: Fix reported speed and width 2020-09-02 16:58:54 -03:00
hw RDMA/bnxt_re: Remove the qp from list only if the qp destroy succeeds 2020-08-27 09:30:44 -03:00
sw RDMA/rxe: Fix panic when calling kmem_cache_create() 2020-08-27 09:14:41 -03:00
ulp RDMA/rtrs-srv: Replace device_register with device_initialize and device_add 2020-08-24 13:44:53 -03:00
Kconfig IB/uverbs: Enable CQ ioctl commands by default 2020-07-06 19:50:33 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00