diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2019-10-28 17:59:28 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-11-06 13:29:15 -0400 |
commit | 55bfe905fa97633438c13fb029aed85371d85480 (patch) | |
tree | ae555a6d46e6c6bafc88c53f6ebd60bf9439c7e0 /usr/Kconfig | |
parent | b4bc76609722f175a257184cc17ad73226d4b716 (diff) |
RDMA/core: Fix return code when modify_port isn't supported
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: 61e0962d5221 ("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>
Diffstat (limited to 'usr/Kconfig')
0 files changed, 0 insertions, 0 deletions