[openib-general] SRP device management client (and a few opensmglitches)

Eitan Zahavi eitan at mellanox.co.il
Tue Nov 15 13:14:58 PST 2005


Hi Roland,

Now I get it ! 
In the port info record there is a field named LocalPortNumber. 
This field is NOT the port number the data is about.
It is the port number the packet of the query came from.
(see table 145 p823 l-38).
When OpenSM obtains the PortInfo associated with that particular port it
did so through port 2 of the switch. So the LocalPortNum is set to 2.

If you are interested with the real port number, it is located in the
RID second field, of the PortInfoRecord returned by the SA GetTable
query.

Hope this helps.

Eitan Zahavi
Design Technology Director
Mellanox Technologies LTD
Tel:+972-4-9097208
Fax:+972-4-9593245
P.O. Box 586 Yokneam 20692 ISRAEL


> -----Original Message-----
> From: Hal Rosenstock [mailto:halr at voltaire.com]
> Sent: Tuesday, November 15, 2005 8:23 PM
> To: Roland Dreier; Eitan Zahavi
> Cc: openib-general at openib.org
> Subject: RE: [openib-general] SRP device management client (and a few
> opensmglitches)
> 
> Are you referring to SCinet ? It is definitely running off HCA port 1.
> 
> -- Hal
> 
> ________________________________
> 
> From: openib-general-bounces at openib.org on behalf of Roland Dreier
> Sent: Tue 11/15/2005 11:04 AM
> To: Eitan Zahavi
> Cc: openib-general at openib.org
> Subject: Re: [openib-general] SRP device management client (and a few
> opensmglitches)
> 
> 
> 
> I just noticed that the host port that the SM is running on is
> connected to switch port 2.
> 
> What seems to be happening is that all of the switch's ports (except
> port 0) are seen as having local port number 2 in the actual PortInfo
> attribute information, even though the PortNum field in the SA record
> wrapper has the real port number of the switch port.
> 
> I haven't been able to follow the opensm code to see where the table
> used in osm_port_get_phys_ptr() is filled in yet, so I don't know why
> this is happening.
> 
>  - R.
> _______________________________________________
> 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