xref: /linux/net/shaper/shaper_nl_gen.h (revision 66182ca873a4e87b3496eca79d57f86b76d7f52d)
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/net_shaper.yaml */
4 /* YNL-GEN kernel header */
5 /* To regenerate run: tools/net/ynl/ynl-regen.sh */
6 
7 #ifndef _LINUX_NET_SHAPER_GEN_H
8 #define _LINUX_NET_SHAPER_GEN_H
9 
10 #include <net/netlink.h>
11 #include <net/genetlink.h>
12 
13 #include <uapi/linux/net_shaper.h>
14 
15 #define NET_SHAPER_MAX_HANDLE_ID	67108862
16 
17 /* Common nested types */
18 extern const struct nla_policy net_shaper_handle_nl_policy[NET_SHAPER_A_HANDLE_ID + 1];
19 extern const struct nla_policy net_shaper_leaf_info_nl_policy[NET_SHAPER_A_WEIGHT + 1];
20 
21 int net_shaper_nl_pre_doit(const struct genl_split_ops *ops,
22 			   struct sk_buff *skb, struct genl_info *info);
23 int net_shaper_nl_pre_doit_write(const struct genl_split_ops *ops,
24 				 struct sk_buff *skb, struct genl_info *info);
25 int net_shaper_nl_cap_pre_doit(const struct genl_split_ops *ops,
26 			       struct sk_buff *skb, struct genl_info *info);
27 void
28 net_shaper_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
29 			struct genl_info *info);
30 void
31 net_shaper_nl_post_doit_write(const struct genl_split_ops *ops,
32 			      struct sk_buff *skb, struct genl_info *info);
33 void
34 net_shaper_nl_cap_post_doit(const struct genl_split_ops *ops,
35 			    struct sk_buff *skb, struct genl_info *info);
36 int net_shaper_nl_pre_dumpit(struct netlink_callback *cb);
37 int net_shaper_nl_cap_pre_dumpit(struct netlink_callback *cb);
38 int net_shaper_nl_post_dumpit(struct netlink_callback *cb);
39 int net_shaper_nl_cap_post_dumpit(struct netlink_callback *cb);
40 
41 int net_shaper_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
42 int net_shaper_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
43 int net_shaper_nl_set_doit(struct sk_buff *skb, struct genl_info *info);
44 int net_shaper_nl_delete_doit(struct sk_buff *skb, struct genl_info *info);
45 int net_shaper_nl_group_doit(struct sk_buff *skb, struct genl_info *info);
46 int net_shaper_nl_cap_get_doit(struct sk_buff *skb, struct genl_info *info);
47 int net_shaper_nl_cap_get_dumpit(struct sk_buff *skb,
48 				 struct netlink_callback *cb);
49 
50 extern struct genl_family net_shaper_nl_family;
51 
52 #endif /* _LINUX_NET_SHAPER_GEN_H */
53