OSDN Git Service

net/mlx5: Change teardown with force mode failure message to warning
authorAlaa Hleihel <alaa@mellanox.com>
Thu, 1 Feb 2018 13:34:35 +0000 (15:34 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 30 Mar 2018 23:16:17 +0000 (16:16 -0700)
With ConnectX-4, we expect the force teardown to fail in case that
DC was enabled, therefore change the message from error to warning.

Signed-off-by: Alaa Hleihel <alaa@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fw.c

index d7bb10a..7006697 100644 (file)
@@ -245,7 +245,7 @@ int mlx5_cmd_force_teardown_hca(struct mlx5_core_dev *dev)
 
        force_state = MLX5_GET(teardown_hca_out, out, force_state);
        if (force_state == MLX5_TEARDOWN_HCA_OUT_FORCE_STATE_FAIL) {
-               mlx5_core_err(dev, "teardown with force mode failed\n");
+               mlx5_core_warn(dev, "teardown with force mode failed, doing normal teardown\n");
                return -EIO;
        }