> +/**
 > + * nes_post_send
 > + */
 > +static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
 > +            struct ib_send_wr **bad_wr)

 > ...

 > +                    switch (ib_wr->opcode) {

 > ...

 > +                                    if (ib_wr->num_sge > 
 > nesdev->nesadapter->max_sge) {
 > +                                            err = -EINVAL;
 > +                                            break;
 > +                                    }

 > ...

 > +                            default:
 > +                                    /* error */
 > +                                    err = -EINVAL;
 > +                                    break;

looks like if you detect an error while posting a work request, you
break out of the switch statement but just continue through the while
loop going through the list of work reuqests.  Which doesn't seem like
it will work very well.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to