[openib-general] Re: [PATCH] mad_rmpp: Fix receive length calculation
Hal Rosenstock
halr at voltaire.com
Tue Sep 20 15:47:09 PDT 2005
On Tue, 2005-09-20 at 18:42, Sean Hefty wrote:
> 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?
Right, a little convulted...
> Can we just do something like sizeof MAD - payload?
Close but that wouldn't work. You're right that the payload length could
be used to simplify this. I think the correct calculation is:
IB_MGMT_RMPP_DATA - payload length
If you like this better, I'll rework the patch.
-- Hal
More information about the general
mailing list