[ofa-general] Re: [RFC PATCH] Rename ib_gid_t in mad.h to mad_gid_t to prevent name collision with ib_types.h

Sasha Khapyorsky sashak at voltaire.com
Wed Mar 5 22:13:53 PST 2008


Hi Ira,

On 17:46 Wed 05 Mar     , Ira Weiny wrote:
> Whilst writing some test code, I came across this issue again.
> 
>    '[openib-general] Conflicting typedefs for "ib_gid_t"'
>    http://lists.openfabrics.org/pipermail/general/2006-August/024903.html
> 
> One fix which suggested was to change the ib_gid_t to mad_gid_t.
> 
>    http://lists.openfabrics.org/pipermail/general/2006-August/024928.html
> 
> I think that is a pretty good choice.  I know there are many ways to fix this
> but this seems to be the least invasive.  (I was actually surprised by how
> little the code needed to change.)  Of course I don't know if other software
> relies on the libibmad interface; so if your package uses mad.h, please
> comment.

I'm using ib_gid_t from mad.h in ibsim. Of course it is trivial to
change there. The only potential issue I can see with it is sort of
incompatibility with released OFED libraries. But this is temporary.

Sasha



More information about the general mailing list