[openib-general] [PATCH] limrdmacm/cmatose: added a check to the return value of the post send requests
Sean Hefty
mshefty at ichips.intel.com
Mon Apr 3 09:39:35 PDT 2006
Dotan Barak wrote:
> - for (i = 0; i < message_count && !ret; i++)
> + for (i = 0; i < message_count && !ret; i++) {
> ret = ibv_post_send(node->cma_id->qp, &send_wr, &bad_send_wr);
> -
> + if (ret) {
> + printf("failed to post sends: %d\n", ret);
> + break;
> + }
> + }
> return ret;
The code will already drop out of the for loop if ret is non-zero.
- Sean
More information about the general
mailing list