• Home
  • Raw
  • Download

Lines Matching refs:devlink

22 devlink_rate_leaf_get_from_info(struct devlink *devlink, struct genl_info *info)  in devlink_rate_leaf_get_from_info()  argument
27 devlink_port = devlink_port_get_from_attrs(devlink, info->attrs); in devlink_rate_leaf_get_from_info()
35 devlink_rate_node_get_by_name(struct devlink *devlink, const char *node_name) in devlink_rate_node_get_by_name() argument
39 list_for_each_entry(devlink_rate, &devlink->rate_list, list) { in devlink_rate_node_get_by_name()
48 devlink_rate_node_get_from_attrs(struct devlink *devlink, struct nlattr **attrs) in devlink_rate_node_get_from_attrs() argument
61 return devlink_rate_node_get_by_name(devlink, rate_node_name); in devlink_rate_node_get_from_attrs()
65 devlink_rate_node_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_node_get_from_info() argument
67 return devlink_rate_node_get_from_attrs(devlink, info->attrs); in devlink_rate_node_get_from_info()
71 devlink_rate_get_from_info(struct devlink *devlink, struct genl_info *info) in devlink_rate_get_from_info() argument
76 return devlink_rate_leaf_get_from_info(devlink, info); in devlink_rate_get_from_info()
78 return devlink_rate_node_get_from_info(devlink, info); in devlink_rate_get_from_info()
88 struct devlink *devlink = devlink_rate->devlink; in devlink_nl_rate_fill() local
95 if (devlink_nl_put_handle(msg, devlink)) in devlink_nl_rate_fill()
143 struct devlink *devlink = devlink_rate->devlink; in devlink_rate_notify() local
149 if (!xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED)) in devlink_rate_notify()
162 genlmsg_multicast_netns(&devlink_nl_family, devlink_net(devlink), msg, in devlink_rate_notify()
166 void devlink_rates_notify_register(struct devlink *devlink) in devlink_rates_notify_register() argument
170 list_for_each_entry(rate_node, &devlink->rate_list, list) in devlink_rates_notify_register()
174 void devlink_rates_notify_unregister(struct devlink *devlink) in devlink_rates_notify_unregister() argument
178 list_for_each_entry_reverse(rate_node, &devlink->rate_list, list) in devlink_rates_notify_unregister()
183 devlink_nl_rate_get_dump_one(struct sk_buff *msg, struct devlink *devlink, in devlink_nl_rate_get_dump_one() argument
191 list_for_each_entry(devlink_rate, &devlink->rate_list, list) { in devlink_nl_rate_get_dump_one()
218 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_rate_get_doit() local
223 devlink_rate = devlink_rate_get_from_info(devlink, info); in devlink_nl_rate_get_doit()
259 struct devlink *devlink = devlink_rate->devlink; in devlink_nl_rate_parent_node_set() local
261 const struct devlink_ops *ops = devlink->ops; in devlink_nl_rate_parent_node_set()
283 parent = devlink_rate_node_get_by_name(devlink, parent_name); in devlink_nl_rate_parent_node_set()
463 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_set_doit() local
468 devlink_rate = devlink_rate_get_from_info(devlink, info); in devlink_nl_cmd_rate_set_doit()
472 ops = devlink->ops; in devlink_nl_cmd_rate_set_doit()
485 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_new_doit() local
490 ops = devlink->ops; in devlink_nl_cmd_rate_new_doit()
499 rate_node = devlink_rate_node_get_from_attrs(devlink, info->attrs); in devlink_nl_cmd_rate_new_doit()
509 rate_node->devlink = devlink; in devlink_nl_cmd_rate_new_doit()
526 list_add(&rate_node->list, &devlink->rate_list); in devlink_nl_cmd_rate_new_doit()
541 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_rate_del_doit() local
545 rate_node = devlink_rate_node_get_from_info(devlink, info); in devlink_nl_cmd_rate_del_doit()
555 err = devlink->ops->rate_node_del(rate_node, rate_node->priv, in devlink_nl_cmd_rate_del_doit()
565 int devlink_rate_nodes_check(struct devlink *devlink, u16 mode, in devlink_rate_nodes_check() argument
570 list_for_each_entry(devlink_rate, &devlink->rate_list, list) in devlink_rate_nodes_check()
588 devl_rate_node_create(struct devlink *devlink, void *priv, char *node_name, in devl_rate_node_create() argument
593 rate_node = devlink_rate_node_get_by_name(devlink, node_name); in devl_rate_node_create()
607 rate_node->devlink = devlink; in devl_rate_node_create()
617 list_add(&rate_node->list, &devlink->rate_list); in devl_rate_node_create()
634 struct devlink *devlink = devlink_port->devlink; in devl_rate_leaf_create() local
637 devl_assert_locked(devlink_port->devlink); in devl_rate_leaf_create()
652 devlink_rate->devlink = devlink; in devl_rate_leaf_create()
655 list_add_tail(&devlink_rate->list, &devlink->rate_list); in devl_rate_leaf_create()
674 devl_assert_locked(devlink_port->devlink); in devl_rate_leaf_destroy()
694 void devl_rate_nodes_destroy(struct devlink *devlink) in devl_rate_nodes_destroy() argument
697 const struct devlink_ops *ops = devlink->ops; in devl_rate_nodes_destroy()
699 devl_assert_locked(devlink); in devl_rate_nodes_destroy()
701 list_for_each_entry(devlink_rate, &devlink->rate_list, list) { in devl_rate_nodes_destroy()
713 list_for_each_entry_safe(devlink_rate, tmp, &devlink->rate_list, list) { in devl_rate_nodes_destroy()