]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: Re-organize mlx5_cmd struct
authorShay Drory <shayd@nvidia.com>
Wed, 18 Jan 2023 14:52:17 +0000 (16:52 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:29 +0000 (11:37 -0700)
commit58db72869a9f8e01910844ca145efc2ea91bbbf9
tree99d33e8087345839a01f0822eacad96126612d0c
parente2bb7984719bb1138e955ba3bbafd3a16d1cb8e3
net/mlx5: Re-organize mlx5_cmd struct

Downstream patch will split mlx5_cmd_init() to probe and reload
routines. As a preparation, organize mlx5_cmd struct so that any
field that will be used in the reload routine are grouped at new
nested struct.

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/debugfs.c
include/linux/mlx5/driver.h