[openib-general] RE: RMPP Message Format Errors

Hal Rosenstock halr at voltaire.com
Thu Aug 25 16:55:37 PDT 2005


On Wed, 2005-08-24 at 04:07, Sean Hefty wrote: 

In the below,

c /opensm/osm vendor layer/

(It is also used by some SA client code in addition to OpenSM.

> Looking through the code, it appears that the proper size of the MAD is being
> reported in the kernel and exported up to userspace.  If I guessed the structure
> of the opensm code correctly, the length is returned by umad_recv() in
> umad_receiver() in osm_vendor_ibumad.c  The length is discarded after
> umad_receiver() returns.

You "guessed" correctly :-)

> I guess that one possible solution is for opensm to save the length value into
> the payload_length field in the RMPP header before returning from
> umad_receiver().

Yes, that is a possible solution if it is needed on the receive side. It
looks to me like it is currently unused (based on method, received size,
and attribute offset). but it is probably a good idea to do this for the
future as another algorithm would work and might be better. I will put
this on my TODO list.

-- Hal





More information about the general mailing list