xref: /openbmc/linux/net/devlink/netlink_gen.h (revision 7288dd2f)
1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /* Do not edit directly, auto-generated from: */
3 /*	Documentation/netlink/specs/devlink.yaml */
4 /* YNL-GEN kernel header */
5 
6 #ifndef _LINUX_DEVLINK_GEN_H
7 #define _LINUX_DEVLINK_GEN_H
8 
9 #include <net/netlink.h>
10 #include <net/genetlink.h>
11 
12 #include <uapi/linux/devlink.h>
13 
14 /* Ops table for devlink */
15 extern const struct genl_split_ops devlink_nl_ops[32];
16 
17 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
18 			struct genl_info *info);
19 int devlink_nl_pre_doit_port(const struct genl_split_ops *ops,
20 			     struct sk_buff *skb, struct genl_info *info);
21 int devlink_nl_pre_doit_port_optional(const struct genl_split_ops *ops,
22 				      struct sk_buff *skb,
23 				      struct genl_info *info);
24 void
25 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
26 		     struct genl_info *info);
27 
28 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
29 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
30 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info);
31 int devlink_nl_port_get_dumpit(struct sk_buff *skb,
32 			       struct netlink_callback *cb);
33 int devlink_nl_sb_get_doit(struct sk_buff *skb, struct genl_info *info);
34 int devlink_nl_sb_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
35 int devlink_nl_sb_pool_get_doit(struct sk_buff *skb, struct genl_info *info);
36 int devlink_nl_sb_pool_get_dumpit(struct sk_buff *skb,
37 				  struct netlink_callback *cb);
38 int devlink_nl_sb_port_pool_get_doit(struct sk_buff *skb,
39 				     struct genl_info *info);
40 int devlink_nl_sb_port_pool_get_dumpit(struct sk_buff *skb,
41 				       struct netlink_callback *cb);
42 int devlink_nl_sb_tc_pool_bind_get_doit(struct sk_buff *skb,
43 					struct genl_info *info);
44 int devlink_nl_sb_tc_pool_bind_get_dumpit(struct sk_buff *skb,
45 					  struct netlink_callback *cb);
46 int devlink_nl_param_get_doit(struct sk_buff *skb, struct genl_info *info);
47 int devlink_nl_param_get_dumpit(struct sk_buff *skb,
48 				struct netlink_callback *cb);
49 int devlink_nl_region_get_doit(struct sk_buff *skb, struct genl_info *info);
50 int devlink_nl_region_get_dumpit(struct sk_buff *skb,
51 				 struct netlink_callback *cb);
52 int devlink_nl_info_get_doit(struct sk_buff *skb, struct genl_info *info);
53 int devlink_nl_info_get_dumpit(struct sk_buff *skb,
54 			       struct netlink_callback *cb);
55 int devlink_nl_health_reporter_get_doit(struct sk_buff *skb,
56 					struct genl_info *info);
57 int devlink_nl_health_reporter_get_dumpit(struct sk_buff *skb,
58 					  struct netlink_callback *cb);
59 int devlink_nl_trap_get_doit(struct sk_buff *skb, struct genl_info *info);
60 int devlink_nl_trap_get_dumpit(struct sk_buff *skb,
61 			       struct netlink_callback *cb);
62 int devlink_nl_trap_group_get_doit(struct sk_buff *skb, struct genl_info *info);
63 int devlink_nl_trap_group_get_dumpit(struct sk_buff *skb,
64 				     struct netlink_callback *cb);
65 int devlink_nl_trap_policer_get_doit(struct sk_buff *skb,
66 				     struct genl_info *info);
67 int devlink_nl_trap_policer_get_dumpit(struct sk_buff *skb,
68 				       struct netlink_callback *cb);
69 int devlink_nl_rate_get_doit(struct sk_buff *skb, struct genl_info *info);
70 int devlink_nl_rate_get_dumpit(struct sk_buff *skb,
71 			       struct netlink_callback *cb);
72 int devlink_nl_linecard_get_doit(struct sk_buff *skb, struct genl_info *info);
73 int devlink_nl_linecard_get_dumpit(struct sk_buff *skb,
74 				   struct netlink_callback *cb);
75 int devlink_nl_selftests_get_doit(struct sk_buff *skb, struct genl_info *info);
76 int devlink_nl_selftests_get_dumpit(struct sk_buff *skb,
77 				    struct netlink_callback *cb);
78 
79 #endif /* _LINUX_DEVLINK_GEN_H */
80