Commit 10a8d007 authored by Huy Nguyen's avatar Huy Nguyen Committed by Saeed Mahameed

net/mlx5: Remove the flag MLX5_INTERFACE_STATE_SHUTDOWN

MLX5_INTERFACE_STATE_SHUTDOWN is not used in the code.

Fixes: 5fc7197d ("net/mlx5: Add pci shutdown callback")
Signed-off-by: default avatarHuy Nguyen <huyn@mellanox.com>
Reviewed-by: default avatarDaniel Jurgens <danielj@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent b3cb5388
...@@ -1563,8 +1563,6 @@ static void shutdown(struct pci_dev *pdev) ...@@ -1563,8 +1563,6 @@ static void shutdown(struct pci_dev *pdev)
int err; int err;
dev_info(&pdev->dev, "Shutdown was called\n"); dev_info(&pdev->dev, "Shutdown was called\n");
/* Notify mlx5 clients that the kernel is being shut down */
set_bit(MLX5_INTERFACE_STATE_SHUTDOWN, &dev->intf_state);
err = mlx5_try_fast_unload(dev); err = mlx5_try_fast_unload(dev);
if (err) if (err)
mlx5_unload_one(dev, priv, false); mlx5_unload_one(dev, priv, false);
......
...@@ -674,7 +674,6 @@ enum mlx5_device_state { ...@@ -674,7 +674,6 @@ enum mlx5_device_state {
enum mlx5_interface_state { enum mlx5_interface_state {
MLX5_INTERFACE_STATE_UP = BIT(0), MLX5_INTERFACE_STATE_UP = BIT(0),
MLX5_INTERFACE_STATE_SHUTDOWN = BIT(1),
}; };
enum mlx5_pci_status { enum mlx5_pci_status {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment