[openib-general] [PATCH] osm_vendor_ibumad.c::umad_receiver: Fix length of short RMPP packets

Hal Rosenstock halr at voltaire.com
Fri Sep 16 06:08:42 PDT 2005


osm_vendor_ibumad.c::umad_receiver: Fix length of short RMPP packets

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

Index: osm_vendor_ibumad.c
===================================================================
--- osm_vendor_ibumad.c (revision 3457)
+++ osm_vendor_ibumad.c (working copy)
@@ -287,6 +287,10 @@ umad_receiver(void *p_ptr)
                        continue;
                }
 
+               /* Need to fix up MAD size if short RMPP packet */
+               if (length < MAD_BLOCK_SIZE)
+                       madw_p->mad_size = length;
+
                /*
                 * Avoid copying by swapping mad buf pointers.
                 * Do not use umad after this line.





More information about the general mailing list