devlink: rename and reorder instances of struct devlink_cmd
authorJiri Pirko <jiri@nvidia.com>
Tue, 31 Jan 2023 09:06:13 +0000 (10:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Feb 2023 18:57:01 +0000 (10:57 -0800)
commit8589ba4e642aa257fa46ee82c975921e19db47d5
tree57599bc3079d2b5d0ffffebdd68b58d1f2094f84
parentf87445953d4c1cbcaa110f95dfd64193756f7353
devlink: rename and reorder instances of struct devlink_cmd

In order to maintain naming consistency, rename and reorder all usages
of struct struct devlink_cmd in the following way:
1) Remove "gen" and replace it with "cmd" to match the struct name
2) Order devl_cmds[] and the header file to match the order
   of enum devlink_command
3) Move devl_cmd_rate_get among the peers
4) Remove "inst" for DEVLINK_CMD_GET
5) Add "_get" suffix to all to match DEVLINK_CMD_*_GET (only rate had it
   done correctly)

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/devl_internal.h
net/devlink/leftover.c
net/devlink/netlink.c