[openib-general] ib_gid_is_link_local

Hal Rosenstock halr at voltaire.com
Tue Jan 2 07:25:20 PST 2007


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) ?

-- Hal





More information about the general mailing list