[openib-general] Proposed device enumeration & async event APIs

Michael S. Tsirkin mst at mellanox.co.il
Sun Sep 12 13:09:51 PDT 2004


Hello!
Quoting r. Roland Dreier (roland at topspin.com) "Re: [openib-general] Proposed device enumeration & async event APIs":
>     Michael> Am I right that you need the ib core loaded always (in a
>     Michael> way similiar to how you need ip core loaded always) and
>     Michael> then ulps plug in from above and devices from below?
> 
> Yes (or it could be loaded based on module dependencies when hotplug
> loads the first low-level driver).
> 
>     Michael> I'm still not sure how ULPs are loaded on a hotplug event
>     Michael> when a device is added, though.
> 
> No need -- you can load the ULP before any devices are present (its
> add() method will get called when low-level drivers create devices).
> Or one could add /etc/hotplug/infiniband.agent or something like that
> to do any initialization required.
> 

But I think ULP initialisation normally fails if there are no devices.
So you have to load them when the devices *are* there.
For example, it seems I wont be able to ifconfig ib0 up before there's
a device with at least one ib port.

mst



More information about the general mailing list