[MLX4] improvements in Soft Reset mechanism [mlnx: 3363]
[mirror/winof/.git] / hw / mlx4 / kernel / bus / net / catas.c
index 564d554..29132a2 100644 (file)
@@ -41,7 +41,7 @@ static LIST_HEAD(catas_list);
 
 // TODO: put into Globals
 // "Reset device on internal errors if non-zero (default 1)")
-int g_internal_err_reset = 1;
+int g_internal_err_reset = 0;
 
 static void dispatch_event(struct ib_device *ibdev, enum ib_event_type type)
 {
@@ -307,19 +307,11 @@ card_reset_wi(
        IN                              DEVICE_OBJECT*                          p_dev_obj,
        IN                              struct ib_event_handler *       event_handler )
 {
-       NTSTATUS status;
        struct ib_device *ibdev = event_handler->device;
-       struct mlx4_dev *dev = ibdev->dma_device;
 
        UNUSED_PARAM(p_dev_obj);
        IoFreeWorkItem( event_handler->rsrv_ptr );
 
-       // reset the card
-       mlx4_stop_catas_poll( dev );
-       status = mlx4_reset( dev );
-       if ( !NT_SUCCESS( status ) )
-               mlx4_err( dev, "Failed to reset HCA, aborting. (status %#x)\n", status );
-
        // notify the clients
        dispatch_event(ibdev, IB_EVENT_RESET_CLIENT);
 }