net/mlx5: Ack on sync_reset_request only if PF can do reset_now
authorMoshe Shemesh <moshe@nvidia.com>
Sat, 20 May 2023 08:33:14 +0000 (11:33 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:02:06 +0000 (12:02 -0700)
commit92501fa6e4217aa0b85b092f91b2649b3c214a75
tree016b03806907efbd8b548e1709e003c085483c76
parent5a6f6873606e03a0a95afe40ba5e84bb6e28a26f
net/mlx5: Ack on sync_reset_request only if PF can do reset_now

Verify at reset_request stage that PF is capable to do reset_now. In
case PF is not capable, notify the firmware that the sync reset can not
happen and so firmware will abort the sync reset at early stage and will
not send reset_now event to any PF.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c