On 5/8/2012 7:22 PM, Or Gerlitz wrote:
--- a/drivers/infiniband/hw/ehca/ehca_qp.c
+++ b/drivers/infiniband/hw/ehca/ehca_qp.c
@@ -464,6 +464,9 @@ static struct ehca_qp *internal_create_qp(
        int is_llqp = 0, has_srq = 0, is_user = 0;
        int qp_type, max_send_sge, max_recv_sge, ret;

+       if (init_attr->qpg_type != IB_QPG_NONE)
+               return ERR_PTR(-ENOSYS);
+
        /* h_call's out parameters */
        struct ehca_alloc_qp_parms parms;
        u32 swqe_size = 0, rwqe_size = 0, ib_qp_num;
@@ -980,6 +983,9 @@ struct ib_srq *ehca_create_srq(struct ib_pd *pd,
        if (srq_init_attr->srq_type != IB_SRQT_BASIC)
                return ERR_PTR(-ENOSYS);

+       if (srq_init_attr->qpg_type != IB_QPG_NONE)
+               return ERR_PTR(-ENOSYS);
+

oops, this setting is wrong, will send fixed patch (mark it as V0.1 to allow room for sending V1 later...)

Or.


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to