1
0
Fork 0
alistair23-linux/drivers/infiniband
Kamal Heib 7613870e25 RDMA/core: Fix return code when modify_port isn't supported
[ Upstream commit 55bfe905fa ]

Improve return code from ib_modify_port() by doing the following:
 - Use "-EOPNOTSUPP" instead "-ENOSYS" which is the proper return code

 - Allow only fake IB_PORT_CM_SUP manipulation for RoCE providers that
   didn't implement the modify_port callback, otherwise return
   "-EOPNOTSUPP"

Fixes: 61e0962d52 ("IB: Avoid ib_modify_port() failure for RoCE devices")
Link: https://lore.kernel.org/r/20191028155931.1114-2-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:44:48 +01:00
..
core RDMA/core: Fix return code when modify_port isn't supported 2019-12-31 16:44:48 +01:00
hw RDMA/qedr: Fix srqs xarray initialization 2019-12-31 16:44:27 +01:00
sw RDMA/siw: Fix SQ/RQ drain logic 2019-12-31 16:44:14 +01:00
ulp IB/iser: bound protection_sg size by data_sg size 2019-12-31 16:43:15 +01:00
Kconfig RDMA/odp: Use the common interval tree library instead of generic 2019-08-21 13:34:09 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00