diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2020-01-30 10:20:49 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-04 12:13:42 -0400 |
commit | bb8865f435d81223596f1abd6dec0b12ed122af0 (patch) | |
tree | 6c045cda87031aaaae00bf34c0ce9a360d7b288f /drivers/infiniband/sw/siw | |
parent | 5e29d1443c46b6ca70a4c940a67e8c09f05dcb7e (diff) | |
download | linux-stable-bb8865f435d81223596f1abd6dec0b12ed122af0.tar.gz linux-stable-bb8865f435d81223596f1abd6dec0b12ed122af0.tar.bz2 linux-stable-bb8865f435d81223596f1abd6dec0b12ed122af0.zip |
RDMA/providers: Fix return value when QP type isn't supported
The proper return code is "-EOPNOTSUPP" when the requested QP type is
not supported by the provider.
Link: https://lore.kernel.org/r/20200130082049.463-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw/siw')
-rw-r--r-- | drivers/infiniband/sw/siw/siw_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/siw/siw_verbs.c b/drivers/infiniband/sw/siw/siw_verbs.c index d5390d498c61..aeb842bc7a1e 100644 --- a/drivers/infiniband/sw/siw/siw_verbs.c +++ b/drivers/infiniband/sw/siw/siw_verbs.c @@ -323,7 +323,7 @@ struct ib_qp *siw_create_qp(struct ib_pd *pd, } if (attrs->qp_type != IB_QPT_RC) { siw_dbg(base_dev, "only RC QP's supported\n"); - rv = -EINVAL; + rv = -EOPNOTSUPP; goto err_out; } if ((attrs->cap.max_send_wr > SIW_MAX_QP_WR) || |