Can this be structure as:
do {
> while (ib_poll_cq(port_priv->cq, 1, &wc) == 1) {
> if (wc.status == IB_WC_SUCCESS) {
> switch (wc.opcode) {
>@@ -2246,6 +2247,10 @@ static void ib_mad_completion_handler(struct work_struct
>*work)
> } else
> mad_error_handler(port_priv, &wc);
> }
>+ ret = ib_req_notify_cq(port_priv->cq, IB_CQ_NEXT_COMP |
>+ IB_CQ_REPORT_MISSED_EVENTS);
} while (ret > 0);
to avoid using a goto for loop control? Although, there's no reason to rearm
the CQ multiple times.
--
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