net/mlx5: Introduce trigger_health_work function
authorIlan Tayari <ilant@mellanox.com>
Sun, 7 May 2017 10:48:31 +0000 (13:48 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 14 May 2017 11:22:10 +0000 (14:22 +0300)
commit0179720d6be2096b8d0a4d143254ff9e77747daa
tree03bd2292f39710ad940ec5dc6af9e6d438d848a8
parent2e9d3e83ab82ceae965ee6abd58305886df94ab9
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>
drivers/net/ethernet/mellanox/mlx5/core/health.c
include/linux/mlx5/driver.h