提交 0540bbbe 编写于 作者: H Hoang-Nam Nguyen 提交者: Roland Dreier

IB/ehca: Don't allow creating UC QP with SRQ

This patch prevents a UC QP to be created attached to an SRQ, since
current firmware does not support this feature.
Signed-off-by: NMichael Faath <micfaath@de.ibm.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 f6bccf69
...@@ -502,6 +502,12 @@ static struct ehca_qp *internal_create_qp( ...@@ -502,6 +502,12 @@ static struct ehca_qp *internal_create_qp(
if (init_attr->srq) { if (init_attr->srq) {
my_srq = container_of(init_attr->srq, struct ehca_qp, ib_srq); my_srq = container_of(init_attr->srq, struct ehca_qp, ib_srq);
if (qp_type == IB_QPT_UC) {
ehca_err(pd->device, "UC with SRQ not supported");
atomic_dec(&shca->num_qps);
return ERR_PTR(-EINVAL);
}
has_srq = 1; has_srq = 1;
parms.ext_type = EQPT_SRQBASE; parms.ext_type = EQPT_SRQBASE;
parms.srq_qpn = my_srq->real_qp_num; parms.srq_qpn = my_srq->real_qp_num;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册