[ofa-general] Re: osm_link_mgr.c:link_mgr_get_smsl question

Hal Rosenstock hal.rosenstock at gmail.com
Thu Sep 17 04:32:24 PDT 2009


On Sun, Aug 30, 2009 at 8:00 AM, Sasha Khapyorsky <sashak at voltaire.com>wrote:

> On 07:32 Sun 30 Aug     , Hal Rosenstock wrote:
> > > >
> > > > osm_link_mgr.c:link_mgr_get_smsl has the following:
> > > >
> > > >         /* Find osm_port of the source = p_physp */
> > > >         slid = osm_physp_get_base_lid(p_physp);
> > > >         p_src_port =
> > > >             cl_ptr_vector_get(&sm->p_subn->port_lid_tbl,
> > > cl_ntoh16(slid));
> > > >
> > > >         /* Call lash to find proper SL */
> > > >         sl = osm_get_lash_sl(p_osm, p_src_port, p_sm_port);
> > > >
> > > > It may be that this code is invoked prior to the LID being assigned
> > >
> > > How is it possible? In the code I can see that link_mgr_process() is
> > > always executed after lid_mgr run.
> >
> >  When nodes use gPXE, the LID is not passed from the gPXE to the Linux
> > environment.
>
> How is it related to gPXE?
>
> OpenSM's lid manager runs and assigns lids to all available endports,
> only after this link manager runs and try with SMSL - at this point all
> lids should be in place and p_subn->port_lid_tbl should be fine.
>

Is that (lids in place) always the case ? What about if the sets of PortInfo
for LID fail.

-- Hal


>
> Am I missing something?
>
> Sasha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20090917/d70b8bab/attachment.html>


More information about the general mailing list