[openib-general] ib_verbs.h ib_device_attr device type
Hal Rosenstock
halr at voltaire.com
Wed Aug 25 09:59:30 PDT 2004
On Wed, 2004-08-25 at 12:41, Roland Dreier wrote:
> Hal> Is there a way to determine whether a device is a HCA,
> Hal> switch, or router ? Does there need to be another field in
> Hal> ib_device_attr for this ?
>
> I would use the flags member of struct ib_device... add something like
>
> enum {
> IB_DEV_FLAG_IS_SWITCH = 1,
> /* etc */
> };
Sounds like a good solution to me.
-- Hal
More information about the general
mailing list