OpenSM: OpenIB vendor layer: Implement osm_vendor_delete

[I've done some testing of this; are there any regressions for this ?]

Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>

486,491d485
<       int agent_id;
< 
<       /* unregister UMAD agents */
<       for (agent_id = 0; agent_id < UMAD_CA_MAX_AGENTS; agent_id++)
<               if ( (*pp_vend)->agents[agent_id] )
<                       umad_unregister( (*pp_vend)->umad_port_id, agent_id );
493c487
<       /* make sure all ports are closed? */
---
>       /* make sure all ports are closed */
596c590
< int
---
> static int
831c825,836
<       osm_vendor_t *p_vend = p_bind->p_vend;
---
>       osm_vendor_t *p_vend;
> 
>       if (p_bind) {
>               p_vend = p_bind->p_vend;
> 
>               OSM_LOG_ENTER( p_vend->p_log, osm_vendor_unbind );
> 
>               /* Unregister UMAD agents */
>               if (p_vend->agents[p_bind->agent_id1])
>                       umad_unregister(p_bind->port_id, p_bind->agent_id1);
>               if (p_vend->agents[p_bind->agent_id])
>                       umad_unregister(p_bind->port_id, p_bind->agent_id);
833c838,844
<       OSM_LOG_ENTER( p_vend->p_log, osm_vendor_unbind );
---
>               /* close port ??? */
> 
>               free(p_bind);
> 
>               OSM_LOG_EXIT( p_vend->p_log);
> 
>       }
835d845
<       OSM_LOG_EXIT( p_vend->p_log);



_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to