Actually, after thinking more about this, posting anything to the SRQ will not force it to complete. The only reason that works for a QP with an RQ is that the QP is in ERR state and thus the RECV WR gets completed with FLUSHED status.
Exactly...
So SRQ drain would require some other method...
I still don't understand the meaning of draining a SRQ. There are no QP associated post recvs, the QP and contexts (wc->qp) are assigned at completion processing time. When we have a SRQ the recv contexts are not bound to a session/connection/QP... Can you well-define what are you trying to do? -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html