>  int ibv_cmd_resize_cq(struct ibv_cq *cq, int cqe,
 > -                  struct ibv_resize_cq *cmd, size_t cmd_size);
 > +                  struct ibv_resize_cq *cmd, size_t cmd_size,
 > +                  struct ibv_resize_cq_resp *resp, size_t resp_size);

We can't make this change without a little more work -- as it stands
this makes it impossible to have a low-level driver that works with
both libibverbs 1.0 and 1.1, since there doesn't seem to be any
autoconf way to check the number of parameters a function takes.

I see two ways forward: either at a new ibv_cmd_resize_cq_resp()
function (as you did originally), or add something like

#define IBV_CMD_RESIZE_CQ_HAS_RESP_PARAMS

and test that in libmthca and libehca.

Personally I lean towards the second solution, although neither is
very elegant.

 - R.

_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to