1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Lin 1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 2 /* Do not edit directly, auto-generated from: 2 /* Do not edit directly, auto-generated from: */ 3 /* Documentation/netlink/specs/devlink.ya 3 /* Documentation/netlink/specs/devlink.yaml */ 4 /* YNL-GEN kernel header */ 4 /* YNL-GEN kernel header */ 5 5 6 #ifndef _LINUX_DEVLINK_GEN_H 6 #ifndef _LINUX_DEVLINK_GEN_H 7 #define _LINUX_DEVLINK_GEN_H 7 #define _LINUX_DEVLINK_GEN_H 8 8 9 #include <net/netlink.h> 9 #include <net/netlink.h> 10 #include <net/genetlink.h> 10 #include <net/genetlink.h> 11 11 12 #include <uapi/linux/devlink.h> 12 #include <uapi/linux/devlink.h> 13 13 14 /* Common nested types */ 14 /* Common nested types */ 15 extern const struct nla_policy devlink_dl_port 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_self 16 extern const struct nla_policy devlink_dl_selftest_id_nl_policy[DEVLINK_ATTR_SELFTEST_ID_FLASH + 1]; 17 17 18 /* Ops table for devlink */ 18 /* Ops table for devlink */ 19 extern const struct genl_split_ops devlink_nl_ 19 extern const struct genl_split_ops devlink_nl_ops[74]; 20 20 21 int devlink_nl_pre_doit(const struct genl_spli 21 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 22 struct genl_info *info 22 struct genl_info *info); 23 int devlink_nl_pre_doit_port(const struct genl 23 int devlink_nl_pre_doit_port(const struct genl_split_ops *ops, 24 struct sk_buff *s 24 struct sk_buff *skb, struct genl_info *info); 25 int devlink_nl_pre_doit_dev_lock(const struct 25 int devlink_nl_pre_doit_dev_lock(const struct genl_split_ops *ops, 26 struct sk_buf 26 struct sk_buff *skb, struct genl_info *info); 27 int devlink_nl_pre_doit_port_optional(const st 27 int devlink_nl_pre_doit_port_optional(const struct genl_split_ops *ops, 28 struct s 28 struct sk_buff *skb, 29 struct g 29 struct genl_info *info); 30 void 30 void 31 devlink_nl_post_doit(const struct genl_split_o 31 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 32 struct genl_info *info); 32 struct genl_info *info); 33 void 33 void 34 devlink_nl_post_doit_dev_lock(const struct gen 34 devlink_nl_post_doit_dev_lock(const struct genl_split_ops *ops, 35 struct sk_buff * 35 struct sk_buff *skb, struct genl_info *info); 36 36 37 int devlink_nl_get_doit(struct sk_buff *skb, s 37 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 38 int devlink_nl_get_dumpit(struct sk_buff *skb, 38 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 39 int devlink_nl_port_get_doit(struct sk_buff *s 39 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info); 40 int devlink_nl_port_get_dumpit(struct sk_buff 40 int devlink_nl_port_get_dumpit(struct sk_buff *skb, 41 struct netlink_ 41 struct netlink_callback *cb); 42 int devlink_nl_port_set_doit(struct sk_buff *s 42 int devlink_nl_port_set_doit(struct sk_buff *skb, struct genl_info *info); 43 int devlink_nl_port_new_doit(struct sk_buff *s 43 int devlink_nl_port_new_doit(struct sk_buff *skb, struct genl_info *info); 44 int devlink_nl_port_del_doit(struct sk_buff *s 44 int devlink_nl_port_del_doit(struct sk_buff *skb, struct genl_info *info); 45 int devlink_nl_port_split_doit(struct sk_buff 45 int devlink_nl_port_split_doit(struct sk_buff *skb, struct genl_info *info); 46 int devlink_nl_port_unsplit_doit(struct sk_buf 46 int devlink_nl_port_unsplit_doit(struct sk_buff *skb, struct genl_info *info); 47 int devlink_nl_sb_get_doit(struct sk_buff *skb 47 int devlink_nl_sb_get_doit(struct sk_buff *skb, struct genl_info *info); 48 int devlink_nl_sb_get_dumpit(struct sk_buff *s 48 int devlink_nl_sb_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 49 int devlink_nl_sb_pool_get_doit(struct sk_buff 49 int devlink_nl_sb_pool_get_doit(struct sk_buff *skb, struct genl_info *info); 50 int devlink_nl_sb_pool_get_dumpit(struct sk_bu 50 int devlink_nl_sb_pool_get_dumpit(struct sk_buff *skb, 51 struct netli 51 struct netlink_callback *cb); 52 int devlink_nl_sb_pool_set_doit(struct sk_buff 52 int devlink_nl_sb_pool_set_doit(struct sk_buff *skb, struct genl_info *info); 53 int devlink_nl_sb_port_pool_get_doit(struct sk 53 int devlink_nl_sb_port_pool_get_doit(struct sk_buff *skb, 54 struct ge 54 struct genl_info *info); 55 int devlink_nl_sb_port_pool_get_dumpit(struct 55 int devlink_nl_sb_port_pool_get_dumpit(struct sk_buff *skb, 56 struct 56 struct netlink_callback *cb); 57 int devlink_nl_sb_port_pool_set_doit(struct sk 57 int devlink_nl_sb_port_pool_set_doit(struct sk_buff *skb, 58 struct ge 58 struct genl_info *info); 59 int devlink_nl_sb_tc_pool_bind_get_doit(struct 59 int devlink_nl_sb_tc_pool_bind_get_doit(struct sk_buff *skb, 60 struct 60 struct genl_info *info); 61 int devlink_nl_sb_tc_pool_bind_get_dumpit(stru 61 int devlink_nl_sb_tc_pool_bind_get_dumpit(struct sk_buff *skb, 62 stru 62 struct netlink_callback *cb); 63 int devlink_nl_sb_tc_pool_bind_set_doit(struct 63 int devlink_nl_sb_tc_pool_bind_set_doit(struct sk_buff *skb, 64 struct 64 struct genl_info *info); 65 int devlink_nl_sb_occ_snapshot_doit(struct sk_ 65 int devlink_nl_sb_occ_snapshot_doit(struct sk_buff *skb, 66 struct gen 66 struct genl_info *info); 67 int devlink_nl_sb_occ_max_clear_doit(struct sk 67 int devlink_nl_sb_occ_max_clear_doit(struct sk_buff *skb, 68 struct ge 68 struct genl_info *info); 69 int devlink_nl_eswitch_get_doit(struct sk_buff 69 int devlink_nl_eswitch_get_doit(struct sk_buff *skb, struct genl_info *info); 70 int devlink_nl_eswitch_set_doit(struct sk_buff 70 int devlink_nl_eswitch_set_doit(struct sk_buff *skb, struct genl_info *info); 71 int devlink_nl_dpipe_table_get_doit(struct sk_ 71 int devlink_nl_dpipe_table_get_doit(struct sk_buff *skb, 72 struct gen 72 struct genl_info *info); 73 int devlink_nl_dpipe_entries_get_doit(struct s 73 int devlink_nl_dpipe_entries_get_doit(struct sk_buff *skb, 74 struct g 74 struct genl_info *info); 75 int devlink_nl_dpipe_headers_get_doit(struct s 75 int devlink_nl_dpipe_headers_get_doit(struct sk_buff *skb, 76 struct g 76 struct genl_info *info); 77 int devlink_nl_dpipe_table_counters_set_doit(s 77 int devlink_nl_dpipe_table_counters_set_doit(struct sk_buff *skb, 78 s 78 struct genl_info *info); 79 int devlink_nl_resource_set_doit(struct sk_buf 79 int devlink_nl_resource_set_doit(struct sk_buff *skb, struct genl_info *info); 80 int devlink_nl_resource_dump_doit(struct sk_bu 80 int devlink_nl_resource_dump_doit(struct sk_buff *skb, struct genl_info *info); 81 int devlink_nl_reload_doit(struct sk_buff *skb 81 int devlink_nl_reload_doit(struct sk_buff *skb, struct genl_info *info); 82 int devlink_nl_param_get_doit(struct sk_buff * 82 int devlink_nl_param_get_doit(struct sk_buff *skb, struct genl_info *info); 83 int devlink_nl_param_get_dumpit(struct sk_buff 83 int devlink_nl_param_get_dumpit(struct sk_buff *skb, 84 struct netlink 84 struct netlink_callback *cb); 85 int devlink_nl_param_set_doit(struct sk_buff * 85 int devlink_nl_param_set_doit(struct sk_buff *skb, struct genl_info *info); 86 int devlink_nl_region_get_doit(struct sk_buff 86 int devlink_nl_region_get_doit(struct sk_buff *skb, struct genl_info *info); 87 int devlink_nl_region_get_dumpit(struct sk_buf 87 int devlink_nl_region_get_dumpit(struct sk_buff *skb, 88 struct netlin 88 struct netlink_callback *cb); 89 int devlink_nl_region_new_doit(struct sk_buff 89 int devlink_nl_region_new_doit(struct sk_buff *skb, struct genl_info *info); 90 int devlink_nl_region_del_doit(struct sk_buff 90 int devlink_nl_region_del_doit(struct sk_buff *skb, struct genl_info *info); 91 int devlink_nl_region_read_dumpit(struct sk_bu 91 int devlink_nl_region_read_dumpit(struct sk_buff *skb, 92 struct netli 92 struct netlink_callback *cb); 93 int devlink_nl_port_param_get_doit(struct sk_b 93 int devlink_nl_port_param_get_doit(struct sk_buff *skb, struct genl_info *info); 94 int devlink_nl_port_param_get_dumpit(struct sk 94 int devlink_nl_port_param_get_dumpit(struct sk_buff *skb, 95 struct ne 95 struct netlink_callback *cb); 96 int devlink_nl_port_param_set_doit(struct sk_b 96 int devlink_nl_port_param_set_doit(struct sk_buff *skb, struct genl_info *info); 97 int devlink_nl_info_get_doit(struct sk_buff *s 97 int devlink_nl_info_get_doit(struct sk_buff *skb, struct genl_info *info); 98 int devlink_nl_info_get_dumpit(struct sk_buff 98 int devlink_nl_info_get_dumpit(struct sk_buff *skb, 99 struct netlink_ 99 struct netlink_callback *cb); 100 int devlink_nl_health_reporter_get_doit(struct 100 int devlink_nl_health_reporter_get_doit(struct sk_buff *skb, 101 struct 101 struct genl_info *info); 102 int devlink_nl_health_reporter_get_dumpit(stru 102 int devlink_nl_health_reporter_get_dumpit(struct sk_buff *skb, 103 stru 103 struct netlink_callback *cb); 104 int devlink_nl_health_reporter_set_doit(struct 104 int devlink_nl_health_reporter_set_doit(struct sk_buff *skb, 105 struct 105 struct genl_info *info); 106 int devlink_nl_health_reporter_recover_doit(st 106 int devlink_nl_health_reporter_recover_doit(struct sk_buff *skb, 107 st 107 struct genl_info *info); 108 int devlink_nl_health_reporter_diagnose_doit(s 108 int devlink_nl_health_reporter_diagnose_doit(struct sk_buff *skb, 109 s 109 struct genl_info *info); 110 int devlink_nl_health_reporter_dump_get_dumpit 110 int devlink_nl_health_reporter_dump_get_dumpit(struct sk_buff *skb, 111 111 struct netlink_callback *cb); 112 int devlink_nl_health_reporter_dump_clear_doit 112 int devlink_nl_health_reporter_dump_clear_doit(struct sk_buff *skb, 113 113 struct genl_info *info); 114 int devlink_nl_flash_update_doit(struct sk_buf 114 int devlink_nl_flash_update_doit(struct sk_buff *skb, struct genl_info *info); 115 int devlink_nl_trap_get_doit(struct sk_buff *s 115 int devlink_nl_trap_get_doit(struct sk_buff *skb, struct genl_info *info); 116 int devlink_nl_trap_get_dumpit(struct sk_buff 116 int devlink_nl_trap_get_dumpit(struct sk_buff *skb, 117 struct netlink_ 117 struct netlink_callback *cb); 118 int devlink_nl_trap_set_doit(struct sk_buff *s 118 int devlink_nl_trap_set_doit(struct sk_buff *skb, struct genl_info *info); 119 int devlink_nl_trap_group_get_doit(struct sk_b 119 int devlink_nl_trap_group_get_doit(struct sk_buff *skb, struct genl_info *info); 120 int devlink_nl_trap_group_get_dumpit(struct sk 120 int devlink_nl_trap_group_get_dumpit(struct sk_buff *skb, 121 struct ne 121 struct netlink_callback *cb); 122 int devlink_nl_trap_group_set_doit(struct sk_b 122 int devlink_nl_trap_group_set_doit(struct sk_buff *skb, struct genl_info *info); 123 int devlink_nl_trap_policer_get_doit(struct sk 123 int devlink_nl_trap_policer_get_doit(struct sk_buff *skb, 124 struct ge 124 struct genl_info *info); 125 int devlink_nl_trap_policer_get_dumpit(struct 125 int devlink_nl_trap_policer_get_dumpit(struct sk_buff *skb, 126 struct 126 struct netlink_callback *cb); 127 int devlink_nl_trap_policer_set_doit(struct sk 127 int devlink_nl_trap_policer_set_doit(struct sk_buff *skb, 128 struct ge 128 struct genl_info *info); 129 int devlink_nl_health_reporter_test_doit(struc 129 int devlink_nl_health_reporter_test_doit(struct sk_buff *skb, 130 struc 130 struct genl_info *info); 131 int devlink_nl_rate_get_doit(struct sk_buff *s 131 int devlink_nl_rate_get_doit(struct sk_buff *skb, struct genl_info *info); 132 int devlink_nl_rate_get_dumpit(struct sk_buff 132 int devlink_nl_rate_get_dumpit(struct sk_buff *skb, 133 struct netlink_ 133 struct netlink_callback *cb); 134 int devlink_nl_rate_set_doit(struct sk_buff *s 134 int devlink_nl_rate_set_doit(struct sk_buff *skb, struct genl_info *info); 135 int devlink_nl_rate_new_doit(struct sk_buff *s 135 int devlink_nl_rate_new_doit(struct sk_buff *skb, struct genl_info *info); 136 int devlink_nl_rate_del_doit(struct sk_buff *s 136 int devlink_nl_rate_del_doit(struct sk_buff *skb, struct genl_info *info); 137 int devlink_nl_linecard_get_doit(struct sk_buf 137 int devlink_nl_linecard_get_doit(struct sk_buff *skb, struct genl_info *info); 138 int devlink_nl_linecard_get_dumpit(struct sk_b 138 int devlink_nl_linecard_get_dumpit(struct sk_buff *skb, 139 struct netl 139 struct netlink_callback *cb); 140 int devlink_nl_linecard_set_doit(struct sk_buf 140 int devlink_nl_linecard_set_doit(struct sk_buff *skb, struct genl_info *info); 141 int devlink_nl_selftests_get_doit(struct sk_bu 141 int devlink_nl_selftests_get_doit(struct sk_buff *skb, struct genl_info *info); 142 int devlink_nl_selftests_get_dumpit(struct sk_ 142 int devlink_nl_selftests_get_dumpit(struct sk_buff *skb, 143 struct net 143 struct netlink_callback *cb); 144 int devlink_nl_selftests_run_doit(struct sk_bu 144 int devlink_nl_selftests_run_doit(struct sk_buff *skb, struct genl_info *info); 145 int devlink_nl_notify_filter_set_doit(struct s 145 int devlink_nl_notify_filter_set_doit(struct sk_buff *skb, 146 struct g 146 struct genl_info *info); 147 147 148 #endif /* _LINUX_DEVLINK_GEN_H */ 148 #endif /* _LINUX_DEVLINK_GEN_H */ 149 149
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.