[openib-general] Re: ib_device_cap_flags
Michael S. Tsirkin
mst at mellanox.co.il
Thu Feb 10 10:07:22 PST 2005
Quoting r. Sean Hefty <mshefty at ichips.intel.com>:
> Subject: Re: ib_device_cap_flags
>
> Roland Dreier wrote:
> > Michael> Hi! enum ib_device_cap_flags from ib_verbs.h does not
> > Michael> seem to be used anywhere. Specifically there does not
> > Michael> seem to exist a way to find out the device capabilities.
> >
> > Michael> # grep -rIi ib_device_cap_flags .
> > Michael> ./include/ib_verbs.h:enum ib_device_cap_flags {
> >
> >This is partially because of Sean's somewhat unfortunate habit of
> >defining enums but then just using "int" everywhere in the API. The
> >way to get the capabilities is to use ib_query_device -- the flags
> >will be returned in the device_cap_flags member of struct
> >ib_device_attr.
>
> Int is used because the returned value is a bitwise OR of the valid
> capabilities, and is not a value defined by the enum. We can change
> the enum values to #define if that would make it any easier.
>
> - Sean
>
No, probably not :)
--
MST - Michael S. Tsirkin
More information about the general
mailing list