[openib-general] Re: [PATCH] mad_rmpp: Fix receive length calculation
Sean Hefty
mshefty at ichips.intel.com
Tue Sep 20 15:42:13 PDT 2005
Hal Rosenstock wrote:
>>>mad_rmpp: Fix receive length calculation
>>
>>Hal, can you explain problem with the current calculation? Why does pad need to
>>be adjusted by one header size?
>
>
> Because the data size comes out to be the class specific data size, but
> the payload length in the last segment includes the class header as well
> as the filled in data in that last segment.
Ah - got it now. Thanks. What about using a different calculation to determine
the pad rather than subtracting the hdr_size (which includes the class specific
header) and then adding the size of the class specific header back in? Can we
just do something like sizeof MAD - payload?
- Sean
More information about the general
mailing list