I think Yael figured it out: Looking at Roland's code it seems like it will not filter out the PortRecords coming from switch physical ports. So actually he gets many records that all have base lid = 0 and gid = 0 from these ports...
I assume this is the case. There is no trivial way to know from the PortInfo in the PortRecord to which type of node the port belongs. Only a combination of NodeRecord PortRecord (by base lid) can tell you if the PortRecord is an HCA port or switch port. EZ 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:[EMAIL PROTECTED] > Sent: Tuesday, November 15, 2005 4:24 PM > To: Roland Dreier; Eitan Zahavi > Cc: [email protected] > Subject: RE: [openib-general] SRP device management client (and a few > opensmglitches) > > Hi, > > It's not necessarily an RMPP bug. A lot of the port 2s on SCinet are not plugged in. > > -- Hal > > ________________________________ > > From: [EMAIL PROTECTED] on behalf of Roland Dreier > Sent: Tue 11/15/2005 3:27 AM > To: Eitan Zahavi > Cc: [email protected] > Subject: Re: [openib-general] SRP device management client (and a few > opensmglitches) > > > > Eitan> Yes this is correct we never got requested for that query. > Eitan> If you are only interested in obtaining the guid of the > Eitan> port you can simply use NodeInfoRecord and you get the guid > Eitan> in the NodeInfo. But you probably know that. Is there > Eitan> anything more you expect to get from the GUIDInfo? Are you > Eitan> using/having multiple GUIDs for port? > > Good point -- I'll just switch to getting the NodeInfoRecord. > > Eitan> This must be an RMPP bug of some sort. How easy is it to > Eitan> reproduce? Please give us some hints. > > Quite easy in my setup -- it seems to happen every time on my fabric > when I do a get table for PortInfoRecords with local port num 2. > > - R. > _______________________________________________ > openib-general mailing list > [email protected] > http://openib.org/mailman/listinfo/openib-general > > To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
