[ofa-general] What are the valid values for SM LID ?
Hal Rosenstock
halr at voltaire.com
Fri Jul 13 08:00:46 PDT 2007
Ram,
On Fri, 2007-07-13 at 10:58, Kuchimanchi, Ramachandra wrote:
> Hal,
>
> > Where ? In ibsrpdm ?
>
> Yes or in general any one who is reading the SM LID value.
>
> Put another way, how do you know when the SM LID value in
> /sys/infiniband/.../sm_lid is the correct value ? Is it
> better to check that the value is neither 0x0 nor 0xffff ?
>
> Or do you go by the state of the port (armed or beyond as you
> mentioned)
> and then read the sm_lid value ?
I think there are multiple algorithms that work:
1. If port state > armed (e.g. armed or active), SMLID is required to be
valid
2. If (SMLID != 0xffff) && (SMLID != 0x0), SMLID is valid
Maybe other algorithms too.
(Same for LID too)
-- Hal
> Regards,
> Ram
>
>
>
>
More information about the general
mailing list