[ofa-general] mthca wc->opcode for CQEs with error status
Todd Rimmer
todd.rimmer at qlogic.com
Sat Mar 31 07:31:29 PDT 2007
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
Todd.Rimmer at QLogic.com www.QLogic.com
More information about the general
mailing list