]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[ipoib] Remove dead code - ipoib_port_flush_endpts
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Oct 2008 10:18:30 +0000 (10:18 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Oct 2008 10:18:30 +0000 (10:18 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@1709 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_endpoint.h
branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.c
branches/WOF2-0/trunk/ulp/ipoib/kernel/ipoib_port.h

index 30d1edf07c5e675e8f0a606323f44223313897e1..ae1f14680c43a0bbddc38186c043f0b95a2af17e 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 4996c8eca824edd620642cc90841581ca097f993..fd82966eace4c39b0a1b25784b36b3493b2841d6 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 ae3eeaac8aa97172eca15ecac140d1f4df56ffd5..a1b6b5e4b6987e54f955b017d58f0c3fdd81cb9a 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