[openib-general] OpenSM: Fix mad_size of link, path, and service records when VENDOR_RMPP_SUPPORT not define'd
Hal Rosenstock
halr at voltaire.com
Tue Jan 18 10:41:31 PST 2005
OpenSM: Fix mad_size of link, path, and service records when
VENDOR_RMPP_SUPPORT not define'd
Index: osm_sa_path_record.c
===================================================================
--- osm_sa_path_record.c (revision 1559)
+++ osm_sa_path_record.c (revision 1560)
@@ -1250,10 +1250,8 @@
num_rec,trim_num_rec );
num_rec = trim_num_rec;
}
- mad_size = MAD_BLOCK_SIZE;
-#else
- mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_path_rec_t);
#endif
+ mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_path_rec_t);
if( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) )
{
Index: osm_sa_service_record.c
===================================================================
--- osm_sa_service_record.c (revision 1559)
+++ osm_sa_service_record.c (revision 1560)
@@ -403,10 +403,8 @@
num_rec,trim_num_rec );
num_rec = trim_num_rec;
}
- mad_size = MAD_BLOCK_SIZE;
-#else
- mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_service_record_t);
#endif
+ mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_service_record_t);
if( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) )
{
Index: osm_sa_link_record.c
===================================================================
--- osm_sa_link_record.c (revision 1559)
+++ osm_sa_link_record.c (revision 1560)
@@ -661,10 +661,8 @@
num_rec,trim_num_rec );
num_rec = trim_num_rec;
}
- mad_size = MAD_BLOCK_SIZE;
-#else
- mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_link_record_t);
#endif
+ mad_size = IB_SA_MAD_HDR_SIZE + num_rec * sizeof(ib_link_record_t);
if( osm_log_is_active( p_rcv->p_log, OSM_LOG_DEBUG ) )
{
More information about the general
mailing list