On Sat, Apr 04, 2015 at 01:44:40AM +0000, Hefty, Sean wrote:
> > + if (opa && smp->class_version == OPA_SMP_CLASS_VERSION) {
>
> There are several places where this sort of check is made. IMO,
> this check should only require looking at the MAD, not the MAD + the
> device attributes that the MAD will be transferred on. I would
> actually prefer to see this as:
>
> if (smp->class_version == OPA_SMP_CLASS_VERSION)
>
> That check is sufficient. There is no conflict with IB MADs, and
> it's needlessly complicates the code to assume that the IBTA is
> going to someday define another 128 class versions in such a way
> that those versions will not require any other changes to the code.
Hal asked for this, and I agree. It is just lazy not to check the
underlying device type for this stuff - they are different number
spaces, administered by different bodies with no apparent
coordination.
The IBA is pretty clear what should happen to process an unsupported class
version and and adding OPA shouldn't suddenly make the IB side
non-conformant, however aesthetically unpleasing the code may be.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html