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 /* Common nested types */ 15 extern const struct nla_policy devlink_dl_port_function_nl_policy[DEVLINK_PORT_FN_ATTR_CAPS + 1]; 16 extern const struct nla_policy devlink_dl_selftest_id_nl_policy[DEVLINK_ATTR_SELFTEST_ID_FLASH + 1]; 17 18 /* Ops table for devlink */ 19 extern const struct genl_split_ops devlink_nl_ops[73]; 20 21 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 22 struct genl_info *info); 23 int devlink_nl_pre_doit_port(const struct genl_split_ops *ops, 24 struct sk_buff *skb, struct genl_info *info); 25 int devlink_nl_pre_doit_port_optional(const struct genl_split_ops *ops, 26 struct sk_buff *skb, 27 struct genl_info *info); 28 void 29 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 30 struct genl_info *info); 31 32 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 33 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 34 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info); 35 int devlink_nl_port_get_dumpit(struct sk_buff *skb, 36 struct netlink_callback *cb); 37 int devlink_nl_port_set_doit(struct sk_buff *skb, struct genl_info *info); 38 int devlink_nl_port_new_doit(struct sk_buff *skb, struct genl_info *info); 39 int devlink_nl_port_del_doit(struct sk_buff *skb, struct genl_info *info); 40 int devlink_nl_port_split_doit(struct sk_buff *skb, struct genl_info *info); 41 int devlink_nl_port_unsplit_doit(struct sk_buff *skb, struct genl_info *info); 42 int devlink_nl_sb_get_doit(struct sk_buff *skb, struct genl_info *info); 43 int devlink_nl_sb_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 44 int devlink_nl_sb_pool_get_doit(struct sk_buff *skb, struct genl_info *info); 45 int devlink_nl_sb_pool_get_dumpit(struct sk_buff *skb, 46 struct netlink_callback *cb); 47 int devlink_nl_sb_pool_set_doit(struct sk_buff *skb, struct genl_info *info); 48 int devlink_nl_sb_port_pool_get_doit(struct sk_buff *skb, 49 struct genl_info *info); 50 int devlink_nl_sb_port_pool_get_dumpit(struct sk_buff *skb, 51 struct netlink_callback *cb); 52 int devlink_nl_sb_port_pool_set_doit(struct sk_buff *skb, 53 struct genl_info *info); 54 int devlink_nl_sb_tc_pool_bind_get_doit(struct sk_buff *skb, 55 struct genl_info *info); 56 int devlink_nl_sb_tc_pool_bind_get_dumpit(struct sk_buff *skb, 57 struct netlink_callback *cb); 58 int devlink_nl_sb_tc_pool_bind_set_doit(struct sk_buff *skb, 59 struct genl_info *info); 60 int devlink_nl_sb_occ_snapshot_doit(struct sk_buff *skb, 61 struct genl_info *info); 62 int devlink_nl_sb_occ_max_clear_doit(struct sk_buff *skb, 63 struct genl_info *info); 64 int devlink_nl_eswitch_get_doit(struct sk_buff *skb, struct genl_info *info); 65 int devlink_nl_eswitch_set_doit(struct sk_buff *skb, struct genl_info *info); 66 int devlink_nl_dpipe_table_get_doit(struct sk_buff *skb, 67 struct genl_info *info); 68 int devlink_nl_dpipe_entries_get_doit(struct sk_buff *skb, 69 struct genl_info *info); 70 int devlink_nl_dpipe_headers_get_doit(struct sk_buff *skb, 71 struct genl_info *info); 72 int devlink_nl_dpipe_table_counters_set_doit(struct sk_buff *skb, 73 struct genl_info *info); 74 int devlink_nl_resource_set_doit(struct sk_buff *skb, struct genl_info *info); 75 int devlink_nl_resource_dump_doit(struct sk_buff *skb, struct genl_info *info); 76 int devlink_nl_reload_doit(struct sk_buff *skb, struct genl_info *info); 77 int devlink_nl_param_get_doit(struct sk_buff *skb, struct genl_info *info); 78 int devlink_nl_param_get_dumpit(struct sk_buff *skb, 79 struct netlink_callback *cb); 80 int devlink_nl_param_set_doit(struct sk_buff *skb, struct genl_info *info); 81 int devlink_nl_region_get_doit(struct sk_buff *skb, struct genl_info *info); 82 int devlink_nl_region_get_dumpit(struct sk_buff *skb, 83 struct netlink_callback *cb); 84 int devlink_nl_region_new_doit(struct sk_buff *skb, struct genl_info *info); 85 int devlink_nl_region_del_doit(struct sk_buff *skb, struct genl_info *info); 86 int devlink_nl_region_read_dumpit(struct sk_buff *skb, 87 struct netlink_callback *cb); 88 int devlink_nl_port_param_get_doit(struct sk_buff *skb, struct genl_info *info); 89 int devlink_nl_port_param_get_dumpit(struct sk_buff *skb, 90 struct netlink_callback *cb); 91 int devlink_nl_port_param_set_doit(struct sk_buff *skb, struct genl_info *info); 92 int devlink_nl_info_get_doit(struct sk_buff *skb, struct genl_info *info); 93 int devlink_nl_info_get_dumpit(struct sk_buff *skb, 94 struct netlink_callback *cb); 95 int devlink_nl_health_reporter_get_doit(struct sk_buff *skb, 96 struct genl_info *info); 97 int devlink_nl_health_reporter_get_dumpit(struct sk_buff *skb, 98 struct netlink_callback *cb); 99 int devlink_nl_health_reporter_set_doit(struct sk_buff *skb, 100 struct genl_info *info); 101 int devlink_nl_health_reporter_recover_doit(struct sk_buff *skb, 102 struct genl_info *info); 103 int devlink_nl_health_reporter_diagnose_doit(struct sk_buff *skb, 104 struct genl_info *info); 105 int devlink_nl_health_reporter_dump_get_dumpit(struct sk_buff *skb, 106 struct netlink_callback *cb); 107 int devlink_nl_health_reporter_dump_clear_doit(struct sk_buff *skb, 108 struct genl_info *info); 109 int devlink_nl_flash_update_doit(struct sk_buff *skb, struct genl_info *info); 110 int devlink_nl_trap_get_doit(struct sk_buff *skb, struct genl_info *info); 111 int devlink_nl_trap_get_dumpit(struct sk_buff *skb, 112 struct netlink_callback *cb); 113 int devlink_nl_trap_set_doit(struct sk_buff *skb, struct genl_info *info); 114 int devlink_nl_trap_group_get_doit(struct sk_buff *skb, struct genl_info *info); 115 int devlink_nl_trap_group_get_dumpit(struct sk_buff *skb, 116 struct netlink_callback *cb); 117 int devlink_nl_trap_group_set_doit(struct sk_buff *skb, struct genl_info *info); 118 int devlink_nl_trap_policer_get_doit(struct sk_buff *skb, 119 struct genl_info *info); 120 int devlink_nl_trap_policer_get_dumpit(struct sk_buff *skb, 121 struct netlink_callback *cb); 122 int devlink_nl_trap_policer_set_doit(struct sk_buff *skb, 123 struct genl_info *info); 124 int devlink_nl_health_reporter_test_doit(struct sk_buff *skb, 125 struct genl_info *info); 126 int devlink_nl_rate_get_doit(struct sk_buff *skb, struct genl_info *info); 127 int devlink_nl_rate_get_dumpit(struct sk_buff *skb, 128 struct netlink_callback *cb); 129 int devlink_nl_rate_set_doit(struct sk_buff *skb, struct genl_info *info); 130 int devlink_nl_rate_new_doit(struct sk_buff *skb, struct genl_info *info); 131 int devlink_nl_rate_del_doit(struct sk_buff *skb, struct genl_info *info); 132 int devlink_nl_linecard_get_doit(struct sk_buff *skb, struct genl_info *info); 133 int devlink_nl_linecard_get_dumpit(struct sk_buff *skb, 134 struct netlink_callback *cb); 135 int devlink_nl_linecard_set_doit(struct sk_buff *skb, struct genl_info *info); 136 int devlink_nl_selftests_get_doit(struct sk_buff *skb, struct genl_info *info); 137 int devlink_nl_selftests_get_dumpit(struct sk_buff *skb, 138 struct netlink_callback *cb); 139 int devlink_nl_selftests_run_doit(struct sk_buff *skb, struct genl_info *info); 140 141 #endif /* _LINUX_DEVLINK_GEN_H */ 142