[openib-general] ib_device_cap_flags
Roland Dreier
roland at topspin.com
Wed Feb 9 08:56:50 PST 2005
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.
However with that said, mthca doesn't implement setting that field and
in fact, looking at the code, will return garbage in that field, so it
can't really be used yet. That's mostly because no one has cared to
test any of those capabilities yet.
- R.
More information about the general
mailing list