> +enum ib_rate ipath_mult_to_ib_rate(unsigned mult)
 > +{
 > +    switch (mult) {
 > +    case 8:  return IB_RATE_2_5_GBPS;
 > +    case 4:  return IB_RATE_5_GBPS;
 > +    case 2:  return IB_RATE_10_GBPS;
 > +    case 1:  return IB_RATE_20_GBPS;
 > +    default: return IB_RATE_PORT_CURRENT;
 > +    }
 > +}

Looks suspiciously like a copy of the existing mult_to_ib_rate() except
it handles fewer cases... is there a reason to copy this?

 - R.
_______________________________________________
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