OSDN Git Service

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)
commit1330bd9884efc49f5b5ca854cf1185f1bec705d0
tree21602695657babcd49a38bbb0c7d1acba187d860
parent9b98d395b85dd042fe83fb696b1ac02e6c93a520
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