[ipoib] Remove dead code - ipoib_port_flush_endpts
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Oct 2008 10:11:48 +0000 (10:11 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Oct 2008 10:11:48 +0000 (10:11 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1708 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_endpoint.h
ulp/ipoib/kernel/ipoib_port.c
ulp/ipoib/kernel/ipoib_port.h

index 30d1edf..ae1f146 100644 (file)
@@ -60,7 +60,6 @@ typedef struct _ipoib_endpt
        net16_t                                 dlid;\r
        net32_t                                 qpn;\r
        ib_av_handle_t                  h_av;\r
-       boolean_t                               expired;\r
        ib_al_ifc_t                             *p_ifc;\r
        boolean_t                       is_in_use;\r
        boolean_t                               is_mcast_listener;\r
@@ -140,7 +139,6 @@ ipoib_endpt_ref(
         * or trying to send data to that endpoint.  Clear the expired flag\r
         * to prevent the AV from being flushed.\r
         */\r
-       p_endpt->expired = FALSE;\r
 }\r
 \r
 \r
index 4996c8e..fd82966 100644 (file)
@@ -5110,51 +5110,6 @@ ipoib_port_remove_endpt(
        IPOIB_EXIT( IPOIB_DBG_ENDPT );\r
 }\r
 \r
-\r
-void\r
-ipoib_port_flush_endpts(\r
-       IN                              ipoib_port_t* const                     p_port )\r
-{\r
-       cl_map_item_t   *p_item;\r
-       ipoib_endpt_t   *p_endpt;\r
-\r
-       IPOIB_ENTER( IPOIB_DBG_ENDPT );\r
-\r
-       cl_obj_lock( &p_port->obj );\r
-       p_item = cl_qmap_head( &p_port->endpt_mgr.mac_endpts );\r
-       while( p_item != cl_qmap_end( &p_port->endpt_mgr.mac_endpts ) )\r
-       {\r
-               p_endpt = PARENT_STRUCT( p_item, ipoib_endpt_t, mac_item );\r
-               p_item = cl_qmap_next( p_item );\r
-\r
-               /*\r
-                * If the endpoint has been marked as expired before, and we have\r
-                * an AV handle, free the AV.\r
-                */\r
-               if( p_endpt->expired && p_endpt->h_av )\r
-               {\r
-                       CL_ASSERT( p_endpt->obj.ref_cnt == 1 );\r
-                       p_port->p_adapter->p_ifc->destroy_av( p_endpt->h_av );\r
-                       p_endpt->h_av = NULL;\r
-                       p_endpt->expired = FALSE;\r
-               }\r
-\r
-               /*\r
-                * If the endpoint is not in use, mark it as expired.\r
-                * Note that the ref count is only zero when the endpoint gets\r
-                * destroyed, so an endpoint that is not in use has a ref count of 1.\r
-                * Also note that we never expire any multicast endpoints.\r
-                */\r
-               CL_ASSERT( p_endpt->obj.ref_cnt != 0 );\r
-               if( p_endpt->obj.ref_cnt == 1 && p_endpt->h_av && !p_endpt->h_mcast )\r
-                       p_endpt->expired = TRUE;\r
-       }\r
-       cl_obj_unlock( &p_port->obj );\r
-\r
-       IPOIB_EXIT( IPOIB_DBG_ENDPT );\r
-}\r
-\r
-\r
 /*\r
  * The sequence for port up is as follows:\r
  *     1. The port goes active.  This allows the adapter to send SA queries\r
index ae3eeaa..a1b6b5e 100644 (file)
@@ -595,10 +595,6 @@ ipoib_port_remove_endpt(
        IN                              ipoib_port_t* const                     p_port,\r
        IN              const   mac_addr_t                                      mac );\r
 \r
-void\r
-ipoib_port_flush_endpts(\r
-       IN                              ipoib_port_t* const                     p_port );\r
-\r
 void\r
 ipoib_port_send(\r
        IN                              ipoib_port_t* const                     p_port,\r