[openib-general] [PATCH] OSM vendor layer: Fix length when sending RMPP for SA class in osm_vendor_send
Hal Rosenstock
halr at voltaire.com
Fri Aug 26 08:20:44 PDT 2005
OSM vendor layer: Fix length when sending RMPP for SA class in
osm_vendor_send
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: osm_vendor_ibumad.c
===================================================================
--- osm_vendor_ibumad.c (revision 3197)
+++ osm_vendor_ibumad.c (working copy)
@@ -942,7 +942,8 @@
put_madw(p_vend, p_madw, &p_mad->trans_id);
if ((ret = umad_send(p_bind->port_id, p_bind->agent_id, p_vw->umad,
- p_madw->mad_size,
+ is_rmpp ? p_madw->mad_size - IB_SA_MAD_HDR_SIZE :
+ p_madw->mad_size,
resp_expected ? p_vend->timeout : 0,
p_vend->max_retries)) < 0) {
if (resp_expected)
More information about the general
mailing list