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

Roland Dreier roland at topspin.com
Mon Oct 25 16:22:23 PDT 2004


    Hal> Seems to me operation type is also called out "equally". Call
    Hal> the spec lawyers :-)

I don't think your interpretation can be reconciled with the spec.
11.4.2.1 says:

    If the status of the operation that generates the Work Completion
    is anything other than success, the contents of the Work
    Completion are undefined except as noted below. The contents of a
    Work Completion are:

and what follows is a list of _every_ component of a Work Completion.
For WR ID, status and freed resource count _only_, the spec says:

    This is always valid, regardless of the status of the operation.

Clearly the intent of the spec is that these 3 fields are the only
fields required to be valid for unsuccessful completions.  Both mthca
and the Mellanox THCA driver followed this interpretation.

 - R.



More information about the general mailing list