[openib-general] [PATCH] mthca: query_qp and query_srq

Roland Dreier rdreier at cisco.com
Mon Feb 13 12:16:39 PST 2006


Seems like this chunk:

 > --- openib_gen2.orig/drivers/infiniband/core/verbs.c
 > +++ openib_gen2/drivers/infiniband/core/verbs.c
 > @@ -257,9 +257,18 @@ int ib_query_qp(struct ib_qp *qp,
 >  		int qp_attr_mask,
 >  		struct ib_qp_init_attr *qp_init_attr)
 >  {
 > -	return qp->device->query_qp ?
 > +	int err;
 > +
 > +	err = qp->device->query_qp ?
 >  		qp->device->query_qp(qp, qp_attr, qp_attr_mask, qp_init_attr) :
 >  		-ENOSYS;
 > +	if (err)
 > +		return err;
 > +	qp_init_attr->recv_cq = qp->recv_cq;
 > +	qp_init_attr->send_cq = qp->send_cq;
 > +	qp_init_attr->srq = qp->srq;
 > +
 > +	return err;
 >  }
 >  EXPORT_SYMBOL(ib_query_qp);

really belonged in an earlier part of the series.

Anyway I'll fix it up when applying the patches.

Thanks,
  Roland



More information about the general mailing list