struct ibv_cq *mthca_create_cq(struct ibv_context *context, int cqe,

                               struct ibv_comp_channel *channel,

                               int comp_vector)

{

        struct mthca_create_cq      cmd;

-----------à snip ß------------

        ret = ibv_cmd_create_cq(context, cqe - 1, channel, comp_vector,

                                &cq->ibv_cq, &cmd.ibv_cmd, sizeof cmd,

 

                                                           ^^^^^^^^^^

 

                                &resp.ibv_resp, sizeof resp);

 

The command size passed to ibv_cmd_create_cq is the size of the mthca command wrapper which is larger than what is most likely expected.

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to