[ofw] Expose a vendor defined device in ibbus?
Tzachi Dar
tzachid at mellanox.co.il
Wed Dec 17 08:19:57 PST 2008
Hi James,
I'm not sure exactly how IOSs are being created, but I have done a
search in the code and found out that they have a hard coded support in
the file bus_iou_mgr.c
So I guess that unless you really want to achieve this functionality
(creating devices according to network requests) this is not the correct
path for you (and this will probably also require more changes to the
code). Please also note that using this approach devices only appear
when the network is up.
It seems to me that the best solution for you is to use a mechanism that
is close to what the ipoib partition manager are using. This is a
mechanism that allows one to add more devices with a hard coded name of
IBA\\IPoIBP. So what you should probably do is to change that mechanism
to allow it creating devices with different names.
Using this you will be able to achieve your goal in a generic way.
Thanks
Tzachi
> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of James Yang
> Sent: Monday, December 15, 2008 8:56 PM
> To: ofw at lists.openfabrics.org
> Subject: [ofw] Expose a vendor defined device in ibbus?
>
> Hi,
>
> I need to have IB drivers expose a new device for us. The
> device could be similar to IPoIB or IOU device, it may have
> device id IBA\vendorx. My question is what is the best way to
> achieve this? One easy way I can think of is to modify IBBUS
> driver and expose a new device similar to IPoIB, I can read
> registry key and decide if I need to expose this new device
> or not. The default is to turn this new device cap off so
> that it will not have any impact or current code.
>
> Is there any other better way to achieve this? Without
> modifying current IB stack code, is it possible to create a
> user defined IB device, such as through Subnet Manager etc?
> How does IOU device get notification and thus create PDO?
>
> If there is no better/straightforward way to add a new IB
> device, I will submit a patch to add a new user defined IB
> device through registry key.
>
> Please provide your opinion.
>
> Thanks,
> James
>
>
>
>
>
> _______________________________________________
> ofw mailing list
> ofw at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>
More information about the ofw
mailing list