[openib-general] umad_recv won't block after first read...

Hal Rosenstock halr at voltaire.com
Thu Aug 10 06:31:42 PDT 2006


Hi Abhijit,

On Thu, 2006-08-10 at 07:21, Abhijit Gadgil wrote:
> Hi All, 
> 
> I am trying to write a simple program using libibumad to 'subscribe' for traps and then receive traps from the SA. Most of the things seem to work fine, however I am facing a small problem where, after first read for the trap, all subsequent reads are not blocking (and return some incorrect length). 

What do those calls return ? What version of management are you using ? 

> Attached is the simple code, can someone tell, what exactly is wrong out here? 

I didn't build and run this so my comments are based on just looking at
the code. I don't think it would build as there are other changes needed
to support this (e.g. IB_SA_INFINFO_XXX in libibmad at a minimum).

Is the main loop based on some operational program ? If so, which one ?

A couple of specific comments:

init_sa_headers: InformInfo does not actually use RMPP so the
initialization here needs to change. Not sure what doing this would
cause without actually building and running this.

Based on this, what is the result of the subscription ? Does it really
succeed ?

main: Rather than hard coding SM LID to 0x12, there are ways to get this
dynamically. There are examples of how to do this.

-- Hal

> Thanks
> 
> -abhijit
> 
> ______________________________________________________________________
> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general





More information about the general mailing list