[openib-general] ib_gid_is_link_local
Hal Rosenstock
halr at voltaire.com
Tue Jan 2 13:42:23 PST 2007
On Tue, 2007-01-02 at 12:03, Hal Rosenstock wrote:
> On Tue, 2007-01-02 at 10:25, Hal Rosenstock wrote:
> > Hi Eitan,
> >
> > I started to look at changes for IB routers and the following in
> > ib_types.h doesn't look quite right to me:
> >
> > static inline boolean_t OSM_API
> > ib_gid_is_link_local(
> > IN const ib_gid_t* const p_gid )
> > {
> > return( ib_gid_get_subnet_prefix( p_gid ) == IB_DEFAULT_SUBNET_PREFIX );
> > }
> >
> > Shouldn't it be either the default subnet prefix or the one supplied in
> > PortInfo:GidPrefix (which might not be the default one) ?
>
> I propose changing the routine name to ib_gid_is_default_prefix so as
> not to be misleading. Comments ? Patch to follow for this.
What is confusing is the link local unicast GID definition in Figure 39.
It says 54 bits of and is green (which I think means 0 as in Figure 40)
on p. 144-145.
So I think the code is correct as is...
-- Hal
>
> -- Hal
>
> > -- Hal
> >
> >
> > _______________________________________________
> > openib-general mailing list
> > openib-general at openib.org
> > http://openib.org/mailman/listinfo/openib-general
> >
> > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
> >
More information about the general
mailing list