[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 23:44:31 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 16:46, Michael S. Tsirkin wrote:
> > 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?
>
> It does that...
>
> The info it gets from /sys/class/infiniband/ pertains to a variety of
> driver (verbs) queries.
>
> -- Hal
>
I wander why does umad need any verbs queries?
--
MST
More information about the general
mailing list