[openib-general] Re: User Level Events - request for support

Michael S. Tsirkin mst at mellanox.co.il
Tue May 17 15:39:26 PDT 2005


Quoting r. Eitan Zahavi <eitan at mellanox.co.il>:
> Subject: RE: User Level Events - request for support
> 
> > Hal Wrote:
> > The OpenSM vendor layer should be enhanced with an additional API for a
> > local port state changed event (and take a flag for port down and port
> > up).
> >
> > OpenSM could then take this event and handle it generically. This could
> > be implemented for gen2 (OpenIB) and gen1 if the events can be generated
> > from VAPI or whatever.
> >
> 
> Yes. I agree. We should have osm_vendor_api.h define some callback registration
> function for the local port up/down event. I will implement the OpenSM code for
> firing a sweep one the port is up.
> 
> EZ
> 
> Eitan Zahavi
> Design Technology Director
> Mellanox Technologies LTD
> Tel:+972-4-9097208
> Fax:+972-4-9593245
> P.O. Box 586 Yokneam 20692 ISRAEL

IMHO a function that blocks till there's an event would be a saner API
since it matches what kernel can provide.
opensm can always create a thread if it wants to get a callback
asynchronously.

-- 
MST - Michael S. Tsirkin



More information about the general mailing list