[ewg] ***SPAM*** RE: [ofa-general] [PATCH] ib_mad: Fix RMPP header RRespTime manipulation

Ramachandra K ramachandra.kuchimanchi at qlogic.com
Thu Feb 26 11:09:27 PST 2009


On Thu, Feb 26, 2009 at 11:37 PM, Sean Hefty <sean.hefty at intel.com> wrote:
>>Fix ib_set_rmpp_flags() to use the correct bit mask for RRespTime.
>>In the 8-bit field of the RMPP header, the first 5 bits
>>are RRespTime and next 3 bits are RMPPFlags. Hence to retain
>>the first 5 bits, the mask should be 0xF8 instead of 0xF1.
>>
>>Signed-off-by: Ramachandra K <ramachandra.kuchimanchi at qlogic.com>
>
> Good catch.
>
> Acked-by: Sean Hefty <sean.hefty at intel.com>
>

Just to add some more information -
drivers/infiniband/core/mad_rmpp.c:ack_recv()--->format_ack() calls
ib_set_rmpp_flags() and due to the incorrect ANDing with 0xF1,
RRespTime got changed incorrectly and RMPP
Acks sent back always had a RRespTime of 0x1E (30) which caused the
other end to consider the time outs to be
approximately 4297 seconds (i.e. in the order of 4*2^30) instead of
the usual ~4 seconds (order of 4*2^20).

Regards,
Ram



More information about the ewg mailing list