[openib-general] [PATCH] OSM vendor layer: In umad_receiver, handle allocating RMPP large MADs from OSM MAD pool
Hal Rosenstock
halr at voltaire.com
Fri Aug 26 09:34:58 PDT 2005
OSM vendor layer: In umad_receiver, handle allocating RMPP large MADs
from OSM MAD pool
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: osm_vendor_ibumad.c
===================================================================
--- osm_vendor_ibumad.c (revision 3198)
+++ osm_vendor_ibumad.c (working copy)
@@ -271,7 +271,9 @@
if (!(madw_p = osm_mad_pool_get(p_bind->p_mad_pool,
(osm_bind_handle_t)p_bind,
- MAD_BLOCK_SIZE, &osm_addr))) {
+ length > MAD_BLOCK_SIZE ?
+ length : MAD_BLOCK_SIZE,
+ &osm_addr))) {
osm_log( p_vend->p_log, OSM_LOG_ERROR, "umad_receiver: "
"request for a new madw failed -- dropping packet\n" );
continue;
More information about the general
mailing list