[ofa-general] umad agent question?

Robert Pearson rpearson at systemfabricworks.com
Tue Oct 30 11:12:55 PDT 2007


Hal,

That was one thing I saw. The version of OFED installed on my test machine
is 1.1 and that must have been added later. This is not a problem. I just
was not expecting the behavior.

Bob

-----Original Message-----
From: Hal Rosenstock [mailto:hrosenstock at xsigo.com] 
Sent: Tuesday, October 30, 2007 1:00 PM
To: Robert Pearson
Cc: 'Sean Hefty'; 'Hal Rosenstock'; general at lists.openfabrics.org
Subject: RE: [ofa-general] umad agent question?

On Tue, 2007-10-30 at 12:34 -0500, Robert Pearson wrote:
> Sean,
> 
> OK, I understand about unsolicited that helps some. I attached a simple
umad
> test case. Try running
> 
> on machine A assuming port 1 is active and has say lid 8
> 
> ./madtest --port 1
> 
> on machine B assuming port 1 is active and on the same subnet as machine A
> port 1
> 
> ./madtest --port 1 --lid 8 --method 3
> 
> Everything should work (except that the TID gets mangled???).

>From Documentation/user_mad.txt:

Transaction IDs

  Users of the umad devices can use the lower 32 bits of the
  transaction ID field (that is, the least significant half of the
  field in network byte order) in MADs being sent to match
  request/response pairs.  The upper 32 bits are reserved for use by
  the kernel and will be overwritten before a MAD is sent.

Is this what you are referring to ?

-- Hal

> Then repeat with --method 1. Machine B will see a response from A but A
will
> not see the packet so someone else on A is replying to the MAD.
> 
> Bob
> 
> -----Original Message-----
> From: Sean Hefty [mailto:mshefty at ichips.intel.com] 
> Sent: Tuesday, October 30, 2007 11:09 AM
> To: Robert Pearson
> Cc: general at lists.openfabrics.org; Sasha Khapyorsky; 'Hal Rosenstock'
> Subject: Re: [ofa-general] umad agent question?
> 
> > I am trying to create a vendor (group1) class management agent using 
> > libibumad. I am successful in registering the agent with method mask set

> > to 0xe = get/put/send. When I use a send message from another system the

> > message is received but apparently not when I use get or set. I say 
> > apparently because the system issuing the get or set receives a response

> > but the user agent never returns from umad_recv. Is there by any chance 
> > some sample code somewhere in the OFA tree that exercises this 
> > functionality that I could look at? Also, I am curious why the method 
> > mask does not cover the response bit. How does this work. If you are 
> > registered for get do you automatically get get_response packets?
> 
> The method mask is only used for routing received unsolicited MADs. 
> I.e. those that are not response MADs.  Any app can send a MAD and get 
> its response.  Only one app is allowed to receive a non-response MAD.
> 
> As for the problem that you mention, I don't understand the behavior 
> that you're seeing.
> 
> - Sean
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general



More information about the general mailing list