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
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to