]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Set default grace period based on function type
authorMaher Sanalla <msanalla@nvidia.com>
Sun, 2 Oct 2022 04:56:29 +0000 (21:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Oct 2022 23:55:29 +0000 (16:55 -0700)
commite7e3192a091b0be375d66494ecc64f6223252888
tree21602695657babcd49a38bbb0c7d1acba187d860
parent2583b7ab7de1a3f8d071c1956a08415c9b9a4740
net/mlx5: Set default grace period based on function type

Currently, driver sets the same grace period for fw fatal health reporter
to any type of function.

Since the lower level functions are more vulnerable to fw fatal errors as a
result of parent function closure/reload, set a smaller grace period for
the lower level functions, as follows:

1. For ECPF: 180 seconds.
2. For PF: 60 seconds.
3. For VF/SF: 30 seconds.

Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/health.c