[IPOIB] - clear the endpt lid_list on SM change event
[mirror/winof/.git] / ulp / ipoib / kernel / ipoib_endpoint.c
index c75ac2d..4ef32db 100644 (file)
@@ -413,6 +413,8 @@ __path_query_cb(
        \r
        if( !p_endpt->dlid )\r
        {\r
+               cl_map_item_t   *p_qitem;\r
+\r
                /* This is a subnet local endpoint that does not have its LID set. */\r
                p_endpt->dlid = p_path->dlid;\r
                /*\r
@@ -420,8 +422,9 @@ __path_query_cb(
                 * traffic will resolve it properly.\r
                 */\r
                cl_obj_lock( &p_port->obj );\r
-               cl_qmap_insert( &p_port->endpt_mgr.lid_endpts,\r
+               p_qitem = cl_qmap_insert( &p_port->endpt_mgr.lid_endpts,\r
                        p_endpt->dlid, &p_endpt->lid_item );\r
+               CL_ASSERT( p_qitem == &p_endpt->lid_item );\r
                cl_obj_unlock( &p_port->obj );\r
        }\r
        av_attr.static_rate = ib_path_rec_rate( p_path );\r