[openib-general] Re: What is the correct method of determining the number of ports
Michael S. Tsirkin
mst at mellanox.co.il
Mon Jun 6 13:46:52 PDT 2005
Quoting r. Hal Rosenstock <halr at voltaire.com>:
> Subject: Re: What is the correct method of determining?the?number of ports
>
> On Mon, 2005-06-06 at 01:07, Shirley Ma wrote:
> > I was thinking to use ibv_get_devices() to get the list of device
> > names, then use umad_get_ca() to get ca info. (it actually gets the
> > info from directory /sys/class/infiniband.) Which might not what you
> > want.
>
> umad was done long before uverbs was available and using
> /sys/class/infiniband was the only way to obtain the needed information
> in userspace. If the community thinks uverbs should be used to obtain
> this information, this can be converted over. Patches accepted :-)
>
> -- Hal
Off the top of my head, the right approach seems to be to use
/dev/infiniband/umad%d for umad.
Right?
--
MST
More information about the general
mailing list