[openib-general] Re: RMPP Message Format Errors
Eitan Zahavi
eitan at mellanox.co.il
Tue Aug 23 23:21:42 PDT 2005
Hal Rosenstock wrote:
> Hi Eitan,
>
> You wrote:
> "Note that the current implementation of the RMPP code ignores the payload length on the receive side, and instead relies on the last bit to determine the end of a transfer."
>
> But the receive side needs to calculate back the correct size of the assembled MAD.
> If it is done in kernel or user it does not matter. To my best knowledge the only way to calculate how many records are enclosed in an RMPP message is to use the paylen and offset.
> How can it be done without looking at paylen ?
>
> All Sean is saying is that the receive RMPP ignores a non zero PayLen in a first segment and uses the last bit (and obviously the PayLen in the last segment) to determine the received length (of the reassembled MAD).
>
OK, thanks for the clarification. We could use a paylen = 0 at first
(but that is not last) segment
More information about the general
mailing list