[openib-general] Bug in ib_mad.c completion handling

Sean Hefty
Mon Oct 25 15:24:57 PDT 2004


On Mon, 25 Oct 2004 18:23:02 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> On Mon, 2004-10-25 at 18:10, Sean Hefty wrote:
> > On Mon, 25 Oct 2004 18:07:18 -0400
> > Hal Rosenstock <halr at voltaire.com> wrote:
> > 
> > > On Mon, 2004-10-25 at 17:09, Roland Dreier wrote:
> > > > ib_mad_completion_handler switches on wc.opcode, even if wc.status is
> > > > not SUCCESS.  This isn't correct, since according to the IB spec,
> > > > wc.opcode may not be valid if the completion has an unsuccessful
> > > > status.
> > > 
> > > Can you cite the compliance or chapter/verse on this ?
> > 
> > See 11.4.2.1 of the 1.1 spec version (poll_cq documentation).
> 
> It says "undefined except as noted below" and operation type (as well as
> WRID) are noted below.

My interpretation is that only WRID is valid, since it is explicitly called out.  All other fields are invalid.

- Sean


More information about the openib-general mailing list