mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
devlink: rename couple of doit netlink callbacks to match generated names
The generated names of the doit netlink callback are missing "cmd" in their names. Change names to be ready to switch to generated split ops header. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20230803111340.1074067-7-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ba0f66c95f
commit
d61aedcf62
@ -196,7 +196,7 @@ void devlink_notify(struct devlink *devlink, enum devlink_command cmd)
|
||||
msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL);
|
||||
}
|
||||
|
||||
int devlink_nl_cmd_get_doit(struct sk_buff *skb, struct genl_info *info)
|
||||
int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info)
|
||||
{
|
||||
struct devlink *devlink = info->user_ptr[0];
|
||||
struct sk_buff *msg;
|
||||
@ -804,7 +804,7 @@ err_cancel_msg:
|
||||
return err;
|
||||
}
|
||||
|
||||
int devlink_nl_cmd_info_get_doit(struct sk_buff *skb, struct genl_info *info)
|
||||
int devlink_nl_info_get_doit(struct sk_buff *skb, struct genl_info *info)
|
||||
{
|
||||
struct devlink *devlink = info->user_ptr[0];
|
||||
struct sk_buff *msg;
|
||||
|
@ -214,11 +214,11 @@ struct devlink_rate *
|
||||
devlink_rate_node_get_from_info(struct devlink *devlink,
|
||||
struct genl_info *info);
|
||||
/* Devlink nl cmds */
|
||||
int devlink_nl_cmd_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_reload(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_eswitch_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_eswitch_set_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_info_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_info_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_flash_update(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_selftests_get_doit(struct sk_buff *skb, struct genl_info *info);
|
||||
int devlink_nl_cmd_selftests_run(struct sk_buff *skb, struct genl_info *info);
|
||||
|
@ -6282,7 +6282,7 @@ const struct genl_small_ops devlink_nl_small_ops[56] = {
|
||||
{
|
||||
.cmd = DEVLINK_CMD_GET,
|
||||
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
|
||||
.doit = devlink_nl_cmd_get_doit,
|
||||
.doit = devlink_nl_get_doit,
|
||||
.dumpit = devlink_nl_instance_iter_dumpit,
|
||||
/* can be retrieved by unprivileged users */
|
||||
},
|
||||
@ -6536,7 +6536,7 @@ const struct genl_small_ops devlink_nl_small_ops[56] = {
|
||||
{
|
||||
.cmd = DEVLINK_CMD_INFO_GET,
|
||||
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
|
||||
.doit = devlink_nl_cmd_info_get_doit,
|
||||
.doit = devlink_nl_info_get_doit,
|
||||
.dumpit = devlink_nl_instance_iter_dumpit,
|
||||
/* can be retrieved by unprivileged users */
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user