aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorIlan Tayari <ilant@mellanox.com>2017-05-07 13:48:31 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2017-05-14 14:22:10 +0300
commit0179720d6be2096b8d0a4d143254ff9e77747daa (patch)
tree03bd2292f39710ad940ec5dc6af9e6d438d848a8 /include/linux/mlx5
parentnet/mlx5: Update the list of the PCI supported devices (diff)
downloadlinux-dev-0179720d6be2096b8d0a4d143254ff9e77747daa.tar.xz
linux-dev-0179720d6be2096b8d0a4d143254ff9e77747daa.zip
net/mlx5: Introduce trigger_health_work function
Introduce new function for entering bad-health state. This function will be called from FPGA-related logic in a later patch from asynchronous event (IRQ) context, for that we change the spin lock to an IRQ-safe one. Signed-off-by: Ilan Tayari <ilant@mellanox.com> Reviewed-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index c2740688d679..a277bb36c21f 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -915,6 +915,7 @@ int mlx5_health_init(struct mlx5_core_dev *dev);
void mlx5_start_health_poll(struct mlx5_core_dev *dev);
void mlx5_stop_health_poll(struct mlx5_core_dev *dev);
void mlx5_drain_health_wq(struct mlx5_core_dev *dev);
+void mlx5_trigger_health_work(struct mlx5_core_dev *dev);
int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size,
struct mlx5_buf *buf, int node);
int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, struct mlx5_buf *buf);