[openib-general] [PATCH] opensm: libibmad: match MAD TransactionID

Hal Rosenstock halr at voltaire.com
Tue Jun 27 10:32:23 PDT 2006


On Tue, 2006-06-27 at 13:07, Sasha Khapyorsky wrote:
> Hi Eitan,
> 
> On 09:48 Tue 27 Jun     , Eitan Behave wrote:
> > Hi Sasha
> > 
> > Can you provide a little more info on the cause and impact of the
> > issue you are solving with this patch?
> 
> umad_recv() uses poll(), when it is timeouted umad_recv() returns error
> and _do_madrpc() returns with error too. The next _do_madrpc() session
> will got the previous response MAD. And so on.

One more note to add to this:

This only affects the OpenIB diagnostics and not OpenSM as the latter
does not use this library; it uses umad directly not via rpc.

-- Hal

> > How is it related to work on the thread:
> > "mad: add GID/class checking for matching received to sent MADs"?
> 
> It is not related.
> 
> Sasha
> 
> > 
> > Thanks
> > 
> > Sasha Khapyorsky wrote:
> > >Match MAD TransactionID on receiving. This prevents request/response MADs
> > >mixing - reproducible when poll() (in libibumad) returns timeout.
> > >





More information about the general mailing list