[openib-general] [PATCH] RMPP: Fix payload length of middle RMPP sent segments

Hal Rosenstock halr at voltaire.com
Mon Aug 29 07:10:38 PDT 2005


RMPP: Fix payload length of middle RMPP sent segments. Middle payload
lengths should be 0 on the send side.

(This is a compliance and should not be an interop issue as middle
payload lengths are supposed to be ignored on receive).

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Note also that diff -p did not show the routine name for this 1 line
change.

Index: mad_rmpp.c
===================================================================
--- mad_rmpp.c  (revision 3197)
+++ mad_rmpp.c  (working copy)
@@ -602,6 +603,7 @@
                mad_send_wr->sg_list[1].length = sizeof(struct ib_rmpp_mad) -
                                                 mad_send_wr->data_offset;
                mad_send_wr->sg_list[1].lkey = mad_send_wr->sg_list[0].lkey;
+               rmpp_mad->rmpp_hdr.paylen_newwin = 0;
        }
 
        if (mad_send_wr->seg_num == mad_send_wr->total_seg) {








More information about the general mailing list