[openib-general] What is the correct method of determining the number of ports

Roland Dreier roland at topspin.com
Mon Jun 6 08:18:17 PDT 2005


    Kevin> I'm been hunting around for the proper method for
    Kevin> determining the number of ports a device/hca has by using
    Kevin> the gen2 user access library. I can't figure out how except
    Kevin> by loop through port numbers calling ibv_query_port(). I
    Kevin> figure maybe i'm missing something? Can somebody steer me
    Kevin> in the right direction?

Unfortunately there's not a good way at the moment.  I still need to
implement ibv_query_device() for userspace.

Thanks for reminding me -- I should be able to get to it this week.

 - R.



More information about the general mailing list