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

Hal Rosenstock halr at voltaire.com
Thu Nov 17 17:28:16 PST 2005


On Wed, 2005-11-16 at 05:45, Eitan Zahavi wrote:
> > 
> > It seems that if I want to get a list of (say) all the HCA port 2s in
> > the network, I have to do a get table query of the SA PortInfoRecord
> > with component mask set so that I get ports with LocalPortNumber 2,
> > and then filter out switch ports (since the port number field in the
> > RID is not defined for HCA ports).  Do you think this is really what
> > was intended?
> [EZ] Hi Roland,
> 
> What you have to do to get the HCA ports PortInfo is:
> 1. Get all NodeInfoRecord for node_type == HCA:
> comp_mask = 0x5

LID should not be turned on; only NodeType in NodeInfo so
component mask should be 0x10 (bit 4)..

> 2. For each such node send a PortInfoRecord query by the port number:
> comp_mask = 0x33

The component mask should be 0x3 for EndportLID and PortNum.

> PortInfoRecord *p_pir;
> p_pir->lid = lid_no;
> p_pir->port_num = port_num;
> Do GetTable(p_pir)

Why GetTable ? I think it could just be a Get as there is only 1
expected.

-- Hal




More information about the general mailing list