]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: split mlx5_cmd_init() to probe and reload routines
authorShay Drory <shayd@nvidia.com>
Wed, 18 Jan 2023 18:55:54 +0000 (20:55 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:29 +0000 (11:37 -0700)
commit06cd555f73caec515a14d42ef052221fa2587ff9
tree8d28aff98060329cac1e3f33ff12bfeb6d0591bf
parent0714ec9ea1f291447a925657e0808f34b8fbce2b
net/mlx5: split mlx5_cmd_init() to probe and reload routines

There is no need to destroy and allocate cmd SW structs during reload,
this is time consuming for no reason.
Hence, split mlx5_cmd_init() to probe and reload routines.

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