]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf08ab65f699196fed1938129bf17aa117f7d3869
tree03bd2292f39710ad940ec5dc6af9e6d438d848a8
parenta64500b0351b93f7f52040f7c09ce3d68c0080d6
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