aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/health.c
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2019-03-29 15:37:55 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2019-04-02 12:49:37 -0700
commit52c368dc3da7beb7b283133024af1b6d07bf93b9 (patch)
tree00bdfe723b94c29455414581a9963f194cf08e24 /drivers/net/ethernet/mellanox/mlx5/core/health.c
parentnet/mlx5: Split mdev init and pci init (diff)
downloadlinux-dev-52c368dc3da7beb7b283133024af1b6d07bf93b9.tar.xz
linux-dev-52c368dc3da7beb7b283133024af1b6d07bf93b9.zip
net/mlx5: Move health and page alloc init to mdev_init
Software structure initialization should be in mdev_init stage. This provides a better logical separation of mlx5 core device initialization flow and will help to seamlessly support creating different mlx5 device types such as PF, VF and SF mlx5 sub-function virtual device. This patch does not change any functionality. Signed-off-by: Vu Pham <vuhuong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/health.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/health.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c
index 196c07383082..1ab694bc22c0 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/health.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c
@@ -352,6 +352,13 @@ void mlx5_drain_health_recovery(struct mlx5_core_dev *dev)
cancel_delayed_work_sync(&dev->priv.health.recover_work);
}
+void mlx5_health_flush(struct mlx5_core_dev *dev)
+{
+ struct mlx5_core_health *health = &dev->priv.health;
+
+ flush_workqueue(health->wq);
+}
+
void mlx5_health_cleanup(struct mlx5_core_dev *dev)
{
struct mlx5_core_health *health = &dev->priv.health;