]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net/mlx5: Remove the flag MLX5_INTERFACE_STATE_SHUTDOWN
authorHuy Nguyen <huyn@mellanox.com>
Wed, 9 Aug 2017 15:03:40 +0000 (10:03 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 30 Aug 2017 18:20:43 +0000 (21:20 +0300)
MLX5_INTERFACE_STATE_SHUTDOWN is not used in the code.

Fixes: 5fc7197d3a25 ("net/mlx5: Add pci shutdown callback")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h

index 4cdb414aa2d51713c565c8bfb2ae1b00c33a2c50..16885827367bfd9153f96faaf7c2afedc6c6a5b0 100644 (file)
@@ -1563,8 +1563,6 @@ static void shutdown(struct pci_dev *pdev)
        int err;
 
        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);
        if (err)
                mlx5_unload_one(dev, priv, false);
index 918f5e644506d29a14a78e3d02e1bca2a66de225..205d82d4c468717ac26050358acb65a968481097 100644 (file)
@@ -674,7 +674,6 @@ enum mlx5_device_state {
 
 enum mlx5_interface_state {
        MLX5_INTERFACE_STATE_UP = BIT(0),
-       MLX5_INTERFACE_STATE_SHUTDOWN = BIT(1),
 };
 
 enum mlx5_pci_status {