(Resent becasue the first one got lost) On 03/20/2012 05:39 PM, parav.pan...@emulex.com wrote: > + > +int ocrdma_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, > + struct ib_send_wr **bad_wr) > +{ > + int status = 0; > + struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); > + struct ocrdma_hdr_wqe *hdr; > + unsigned long flags; > + > + spin_lock_irqsave(&qp->q_lock, flags); > + if (qp->state != OCRDMA_QPS_RTS && qp->state != OCRDMA_QPS_SQD) { > + spin_unlock_irqrestore(&qp->q_lock, flags); > + return -EINVAL; > + }
There, and in several places in this function, you return an error without setting bad_wr. Frank. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html