[ofa-general] Re: [PATCH 19/20] IB/ipath - add calls to new 7220 code and enable in build

Roland Dreier rdreier at cisco.com
Fri Apr 4 14:15:01 PDT 2008


 > +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.



More information about the general mailing list