]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Move fw reset unload to mlx5_fw_reset_complete_reload
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 28 Jul 2022 15:53:44 +0000 (18:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:46 +0000 (21:58 -0700)
commite5b9943452c127c6ec53030dd934c2583b6bd74a
treead857f300cfb99a3e07940b54e100e3edc45eb4e
parent99cb87e2ed4e932f737baace43ef699cbbae58c5
net/mlx5: Move fw reset unload to mlx5_fw_reset_complete_reload

Refactor fw reset code to have the unload driver part done on
mlx5_fw_reset_complete_reload(), so if it was called by the PF which
initiated the reload fw activate flow, the unload part will be handled
by the mlx5_devlink_reload_fw_activate() callback itself and not by the
reset event work.

This will be used by the downstream patch to invoke devlink reload
callbacks with devlink lock held.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c