[Fwd: Re: [openib-general] ib_verbs.h ib_device_attr device type]

Sean Hefty mshefty at ichips.intel.com
Wed Sep 1 07:52:42 PDT 2004


On Wed, 01 Sep 2004 10:58:45 -0400
Hal Rosenstock <halr at voltaire.com> wrote:

> Here's a patch to ib_verbs.h define the flags for the ib_device
> structure:
>  
> Index: ib_verbs.h
> ===================================================================
> --- ib_verbs.h  (revision 711)
> +++ ib_verbs.h  (working copy)
> @@ -612,6 +612,11 @@
>         IB_MAD_IGNORE_MKEY      = 1
>  };
>  
> +enum ib_device_flags {
> +       IB_DEVICE_IS_SWITCH     = 1,
> +       IB_DEVICE_IS_ROUTER     = 2
> +};
> +
>  #define IB_DEVICE_NAME_MAX     64
>  
>  struct ib_device {

Thanks for the patch.  One question though, where are these flags set in the ib_device structure?  I was looking at this request yesterday and thought about extending the ib_device_cap_flags, but these seemed a little different.  Maybe we could call the enum ib_device_type and add a new field to ib_device?

- Sean



More information about the general mailing list