From: tzachid Date: Tue, 28 Oct 2008 10:18:30 +0000 (+0000) Subject: [ipoib] Remove dead code - ipoib_port_flush_endpts X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a328158b68fb57b09eea7bf8a857a7913787177c;p=~shefty%2Frdma-win.git [ipoib] Remove dead code - ipoib_port_flush_endpts git-svn-id: svn://openib.tc.cornell.edu/gen1@1709 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_endpoint.h b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_endpoint.h index 30d1edf0..ae1f1468 100644 --- a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_endpoint.h +++ b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_endpoint.h @@ -60,7 +60,6 @@ typedef struct _ipoib_endpt net16_t dlid; net32_t qpn; ib_av_handle_t h_av; - boolean_t expired; ib_al_ifc_t *p_ifc; boolean_t is_in_use; boolean_t is_mcast_listener; @@ -140,7 +139,6 @@ ipoib_endpt_ref( * or trying to send data to that endpoint. Clear the expired flag * to prevent the AV from being flushed. */ - p_endpt->expired = FALSE; } diff --git a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c index 4996c8ec..fd82966e 100644 --- a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c +++ b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c @@ -5110,51 +5110,6 @@ ipoib_port_remove_endpt( IPOIB_EXIT( IPOIB_DBG_ENDPT ); } - -void -ipoib_port_flush_endpts( - IN ipoib_port_t* const p_port ) -{ - cl_map_item_t *p_item; - ipoib_endpt_t *p_endpt; - - IPOIB_ENTER( IPOIB_DBG_ENDPT ); - - cl_obj_lock( &p_port->obj ); - p_item = cl_qmap_head( &p_port->endpt_mgr.mac_endpts ); - while( p_item != cl_qmap_end( &p_port->endpt_mgr.mac_endpts ) ) - { - p_endpt = PARENT_STRUCT( p_item, ipoib_endpt_t, mac_item ); - p_item = cl_qmap_next( p_item ); - - /* - * If the endpoint has been marked as expired before, and we have - * an AV handle, free the AV. - */ - if( p_endpt->expired && p_endpt->h_av ) - { - CL_ASSERT( p_endpt->obj.ref_cnt == 1 ); - p_port->p_adapter->p_ifc->destroy_av( p_endpt->h_av ); - p_endpt->h_av = NULL; - p_endpt->expired = FALSE; - } - - /* - * If the endpoint is not in use, mark it as expired. - * Note that the ref count is only zero when the endpoint gets - * destroyed, so an endpoint that is not in use has a ref count of 1. - * Also note that we never expire any multicast endpoints. - */ - CL_ASSERT( p_endpt->obj.ref_cnt != 0 ); - if( p_endpt->obj.ref_cnt == 1 && p_endpt->h_av && !p_endpt->h_mcast ) - p_endpt->expired = TRUE; - } - cl_obj_unlock( &p_port->obj ); - - IPOIB_EXIT( IPOIB_DBG_ENDPT ); -} - - /* * The sequence for port up is as follows: * 1. The port goes active. This allows the adapter to send SA queries diff --git a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.h b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.h index ae3eeaac..a1b6b5e4 100644 --- a/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.h +++ b/branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.h @@ -595,10 +595,6 @@ ipoib_port_remove_endpt( IN ipoib_port_t* const p_port, IN const mac_addr_t mac ); -void -ipoib_port_flush_endpts( - IN ipoib_port_t* const p_port ); - void ipoib_port_send( IN ipoib_port_t* const p_port,