Lines Matching defs:devlink_ops

1218 struct devlink_ops {  struct
1224 u32 supported_flash_update_params;
1225 unsigned long reload_actions;
1226 unsigned long reload_limits;
1227 int (*reload_down)(struct devlink *devlink, bool netns_change,
1231 int (*reload_up)(struct devlink *devlink, enum devlink_reload_action action,
1234 int (*port_type_set)(struct devlink_port *devlink_port,
1236 int (*port_split)(struct devlink *devlink, struct devlink_port *port,
1238 int (*port_unsplit)(struct devlink *devlink, struct devlink_port *port,
1240 int (*sb_pool_get)(struct devlink *devlink, unsigned int sb_index,
1243 int (*sb_pool_set)(struct devlink *devlink, unsigned int sb_index,
1247 int (*sb_port_pool_get)(struct devlink_port *devlink_port,
1250 int (*sb_port_pool_set)(struct devlink_port *devlink_port,
1253 int (*sb_tc_pool_bind_get)(struct devlink_port *devlink_port,
1258 int (*sb_tc_pool_bind_set)(struct devlink_port *devlink_port,
1264 int (*sb_occ_snapshot)(struct devlink *devlink,
1266 int (*sb_occ_max_clear)(struct devlink *devlink,
1268 int (*sb_occ_port_pool_get)(struct devlink_port *devlink_port,
1271 int (*sb_occ_tc_port_bind_get)(struct devlink_port *devlink_port,
1277 int (*eswitch_mode_get)(struct devlink *devlink, u16 *p_mode);
1278 int (*eswitch_mode_set)(struct devlink *devlink, u16 mode,
1280 int (*eswitch_inline_mode_get)(struct devlink *devlink, u8 *p_inline_mode);
1281 int (*eswitch_inline_mode_set)(struct devlink *devlink, u8 inline_mode,
1283 int (*eswitch_encap_mode_get)(struct devlink *devlink,
1285 int (*eswitch_encap_mode_set)(struct devlink *devlink,
1288 int (*info_get)(struct devlink *devlink, struct devlink_info_req *req,
1297 int (*flash_update)(struct devlink *devlink,
1308 int (*trap_init)(struct devlink *devlink,
1316 void (*trap_fini)(struct devlink *devlink,
1321 int (*trap_action_set)(struct devlink *devlink,
1331 int (*trap_group_init)(struct devlink *devlink,
1339 int (*trap_group_set)(struct devlink *devlink,
1349 int (*trap_group_action_set)(struct devlink *devlink,
1360 int (*trap_drop_counter_get)(struct devlink *devlink,
1369 int (*trap_policer_init)(struct devlink *devlink,
1377 void (*trap_policer_fini)(struct devlink *devlink,
1382 int (*trap_policer_set)(struct devlink *devlink,
1392 int (*trap_policer_counter_get)(struct devlink *devlink,
1404 int (*port_function_hw_addr_get)(struct devlink_port *port, u8 *hw_addr,
1414 int (*port_function_hw_addr_set)(struct devlink_port *port,
1435 int (*port_new)(struct devlink *devlink,
1456 int (*port_del)(struct devlink *devlink, unsigned int port_index,
1470 int (*port_fn_state_get)(struct devlink_port *port,
1485 int (*port_fn_state_set)(struct devlink_port *port,
1492 int (*rate_leaf_tx_share_set)(struct devlink_rate *devlink_rate, void *priv,
1494 int (*rate_leaf_tx_max_set)(struct devlink_rate *devlink_rate, void *priv,
1496 int (*rate_node_tx_share_set)(struct devlink_rate *devlink_rate, void *priv,
1498 int (*rate_node_tx_max_set)(struct devlink_rate *devlink_rate, void *priv,
1500 int (*rate_node_new)(struct devlink_rate *rate_node, void **priv,
1502 int (*rate_node_del)(struct devlink_rate *rate_node, void *priv,
1504 int (*rate_leaf_parent_set)(struct devlink_rate *child,
1508 int (*rate_node_parent_set)(struct devlink_rate *child,
1520 bool (*selftest_check)(struct devlink *devlink, unsigned int id,
1554 struct devlink *devlink_alloc_ns(const struct devlink_ops *ops, argument