Vladimir,

At present in OFED-1.2 mthca, if a CQE reports an error status, the
wc->opcode field is undefined (as are many other fields in the wc).
This is in constrast to ipath and ehca which both fully populate the wc
structure on success and failure status.

To aid error messages and port of some applications it would be better
if wc->opcode could at least indicate if the failed CQE was for the RQ
or SQ.

To meet this need in its simplest form (identify RQ vs SQ), I recommend
adding the following line to handle_error_cqe() in mthca_cq.c and
src_cq.c.

wc->opcode = is_send?:IBV_WC_SEND:IBV_WC_RECV;

Attached are the context diffs for src_cq.c and mthca_cq.c for this
change.

Thank You,
Todd Rimmer
Chief Architect 
QLogic System Interconnect Group
Voice: 610-233-4852     Fax: 610-233-4777
[EMAIL PROTECTED]  www.QLogic.com
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to