Commit 8300dce5 authored by Jiri Pirko's avatar Jiri Pirko Committed by Jakub Kicinski

devlink: un-static devlink_nl_pre/post_doit()

To be prepared for the follow-up generated split ops addition,
make the functions devlink_nl_pre_doit() and devlink_nl_post_doit()
usable outside of netlink.c. Introduce temporary prototypes which are
going to be removed once the generated header will be included.
Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Reviewed-by: default avatarJakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230803111340.1074067-9-jiri@resnulli.usSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 491a2487
...@@ -216,6 +216,10 @@ struct devlink_rate * ...@@ -216,6 +216,10 @@ struct devlink_rate *
devlink_rate_node_get_from_info(struct devlink *devlink, devlink_rate_node_get_from_info(struct devlink *devlink,
struct genl_info *info); struct genl_info *info);
/* Devlink nl cmds */ /* Devlink nl cmds */
int devlink_nl_pre_doit(const struct genl_split_ops *ops,
struct sk_buff *skb, struct genl_info *info);
void devlink_nl_post_doit(const struct genl_split_ops *ops,
struct sk_buff *skb, struct genl_info *info);
int devlink_nl_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_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
int devlink_nl_cmd_reload(struct sk_buff *skb, struct genl_info *info); int devlink_nl_cmd_reload(struct sk_buff *skb, struct genl_info *info);
......
...@@ -109,7 +109,7 @@ devlink_get_from_attrs_lock(struct net *net, struct nlattr **attrs) ...@@ -109,7 +109,7 @@ devlink_get_from_attrs_lock(struct net *net, struct nlattr **attrs)
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
static int devlink_nl_pre_doit(const struct genl_split_ops *ops, int devlink_nl_pre_doit(const struct genl_split_ops *ops,
struct sk_buff *skb, struct genl_info *info) struct sk_buff *skb, struct genl_info *info)
{ {
struct devlink_linecard *linecard; struct devlink_linecard *linecard;
...@@ -167,7 +167,7 @@ static int devlink_nl_pre_doit(const struct genl_split_ops *ops, ...@@ -167,7 +167,7 @@ static int devlink_nl_pre_doit(const struct genl_split_ops *ops,
return err; return err;
} }
static void devlink_nl_post_doit(const struct genl_split_ops *ops, void devlink_nl_post_doit(const struct genl_split_ops *ops,
struct sk_buff *skb, struct genl_info *info) struct sk_buff *skb, struct genl_info *info)
{ {
struct devlink *devlink; struct devlink *devlink;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment