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

Eitan Zahavi eitan at mellanox.co.il
Wed Nov 16 02:45:04 PST 2005


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

2. For each such node send a PortInfoRecord query by the port number:
comp_mask = 0x33
PortInfoRecord *p_pir;
p_pir->lid = lid_no;
p_pir->port_num = port_num;
Do GetTable(p_pir)




More information about the general mailing list