[openib-general] Making gen2 transport neutral
Christoph Hellwig
hch at lst.de
Fri Jul 1 09:02:51 PDT 2005
On Fri, Jul 01, 2005 at 08:59:06AM -0700, Caitlin Bestler wrote:
> to
>
> enum rdma_xyz { /* common values */
> RDMA_XYZ_A,
> RDMA_XYZ_B,
> RDMA_XYZ_C,
> RDMA_XYZ_LIM /* must be last */
> };
>
> enum ib_xyz { /* extends rdma_xyz */
> IB_XYZ_D = RDMA_XYZ_LIM,
> IB_XYZ_E
> };
>
> enum iwarp_xzy { /* extends iwarp_xyz */
> IWARP_XYZ_F = RDMA_XYZ_LIM,
> IWARP_XYZ_G;
> };
>
> That way the transport dependent enums could even
> be in transport dependent .h files, and only the
> common ones would have to be in the main header file.
> That would be very friendly for adding a third
> transport at some later date (I still don't think
> it will happen, but it would make it easier).
looks fine.
More information about the general
mailing list