> -----Original Message-----
> From: Hefty, Sean
> Sent: Tuesday, April 09, 2013 6:30 PM
> To: Weiny, Ira; Jeff Squyres (jsquyres)
> Cc: Hal Rosenstock; Roland Dreier; linux-rdma@vger.kernel.org; Upinder
> Malhi (umalhi)
> Subject: RE: [PATCH 2/2] Ad IB_MTU_1500|9000 enums.
> 
> > If the IBTA were to release new MTU enumerations which values would
> > you recommend then?
> 
> I don't think there's a great solution here.  We're mixing IBTA encoded values
> with non-IBTA values.  We could reserve the 6-bit encoded values for IB, and
> use direct values for others (or at least jump beyond the 6-bit range).  Or we
> can stop matching new IBTA MTU encodings (e.g. IB_MTU_1500 = 6).  Or we
> go back in time and make mtu an int.
> 

I thought reserving the 6 bit's for IB and allowing the enum values to match 
the MTU was a pretty good compromise.  Especially since PathRecord is defined 
in sa.h which is provided by libibverbs.  That allows for that IB MTU enum to 
be used there.

OTOH, now that we have moved toward decent defines in the libibumad  library we 
could define the MTU enum there.  But then we again go down the path of 
defining things multiple places and confusing the users...  :-(

As an aside I like the use of RDMA_MTU_* for these values.  Again to 
distinguish them from the IBTA values.  But I know that is poor form.

Ira

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to