summaryrefslogtreecommitdiff
path: root/net/devlink/resource.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-10-24 02:16:52 +0300
committerJakub Kicinski <kuba@kernel.org>2023-10-24 02:16:52 +0300
commit4fb56e3e92bcac98625ebb85bd931785e7779cec (patch)
tree40e8bc5635c1d35acf016b7776a2b5c2eb4c7729 /net/devlink/resource.c
parent70b1aca365cbbbc7c4570463306c77ed1776bc3d (diff)
parentcebe7306073d4afeb24886f9063417e559fa2e22 (diff)
downloadlinux-4fb56e3e92bcac98625ebb85bd931785e7779cec.tar.xz
Merge branch 'devlink-finish-conversion-to-generated-split_ops'
Jiri Pirko says: ==================== devlink: finish conversion to generated split_ops This patchset converts the remaining genetlink commands to generated split_ops and removes the existing small_ops arrays entirely alongside with shared netlink attribute policy. Patches #1-#6 are just small preparations and small fixes on multiple places. Note that couple of patches contain the "Fixes" tag but no need to put them into -net tree. Patch #7 is a simple rename preparation Patch #8 is the main one in this set and adds actual definitions of cmds in to yaml file. Patches #9-#10 finalize the change removing bits that are no longer in use. ==================== Link: https://lore.kernel.org/r/20231021112711.660606-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/devlink/resource.c')
-rw-r--r--net/devlink/resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/devlink/resource.c b/net/devlink/resource.c
index c8b615e4c385..594c8aeb3bfa 100644
--- a/net/devlink/resource.c
+++ b/net/devlink/resource.c
@@ -105,7 +105,7 @@ devlink_resource_validate_size(struct devlink_resource *resource, u64 size,
return err;
}
-int devlink_nl_cmd_resource_set(struct sk_buff *skb, struct genl_info *info)
+int devlink_nl_resource_set_doit(struct sk_buff *skb, struct genl_info *info)
{
struct devlink *devlink = info->user_ptr[0];
struct devlink_resource *resource;
@@ -285,7 +285,7 @@ err_resource_put:
return err;
}
-int devlink_nl_cmd_resource_dump(struct sk_buff *skb, struct genl_info *info)
+int devlink_nl_resource_dump_doit(struct sk_buff *skb, struct genl_info *info)
{
struct devlink *devlink = info->user_ptr[0];