RDMA/core: Add SRQ type field
Currently, there is only a single ("basic") type of SRQ, but with XRC support we will add a second. Prepare for this by defining an SRQ type and setting all current users to IB_SRQT_BASIC. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:

committed by
Roland Dreier

parent
59991f94eb
commit
96104eda01
@@ -977,6 +977,9 @@ struct ib_srq *ehca_create_srq(struct ib_pd *pd,
|
||||
struct hcp_modify_qp_control_block *mqpcb;
|
||||
u64 hret, update_mask;
|
||||
|
||||
if (srq_init_attr->srq_type != IB_SRQT_BASIC)
|
||||
return ERR_PTR(-ENOSYS);
|
||||
|
||||
/* For common attributes, internal_create_qp() takes its info
|
||||
* out of qp_init_attr, so copy all common attrs there.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user