diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-09-07 15:09:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 10:11:41 +0100 |
commit | 7c2f7696cf9e73062d7040607fe61063c629f9cc (patch) | |
tree | 192df502696bbb235d736390cc28e2dacbbfd25a /include | |
parent | 093f87dda065e0f618dd577985eccbe85efb9b54 (diff) | |
download | linux-stable-7c2f7696cf9e73062d7040607fe61063c629f9cc.tar.gz linux-stable-7c2f7696cf9e73062d7040607fe61063c629f9cc.tar.bz2 linux-stable-7c2f7696cf9e73062d7040607fe61063c629f9cc.zip |
RDMA: Change XRCD destroy return value
[ Upstream commit d0c45c8556e57342d44c9548763609ffcc4e3866 ]
Update XRCD destroy flow to allow command failure.
Fixes: 28ad5f65c314 ("RDMA: Move XRCD to be under ib_core responsibility")
Link: https://lore.kernel.org/r/20200907120921.476363-8-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/rdma/ib_verbs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index f64c1d02b935..8cccbdef5de2 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2468,7 +2468,7 @@ struct ib_device_ops { int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid); int (*alloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata); - void (*dealloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata); + int (*dealloc_xrcd)(struct ib_xrcd *xrcd, struct ib_udata *udata); struct ib_flow *(*create_flow)(struct ib_qp *qp, struct ib_flow_attr *flow_attr, int domain, struct ib_udata *udata); |