devlink: Allow to set up parent in devl_rate_leaf_create()
Currently the driver is able to create leaf nodes for the devlink-rate, but is unable to set parent for them. This wasn't as issue before the possibility to export hierarchy from the driver. After adding the export feature, in order for the driver to supply correct hierarchy, it's necessary for it to be able to supply a parent name to devl_rate_leaf_create(). Introduce a new parameter 'parent_name' in devl_rate_leaf_create(). Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
04d674f04e
commit
f2fc15e271
@@ -1617,10 +1617,12 @@ void devlink_port_attrs_pci_vf_set(struct devlink_port *devlink_port, u32 contro
|
||||
void devlink_port_attrs_pci_sf_set(struct devlink_port *devlink_port,
|
||||
u32 controller, u16 pf, u32 sf,
|
||||
bool external);
|
||||
int devl_rate_leaf_create(struct devlink_port *port, void *priv);
|
||||
struct devlink_rate *
|
||||
devl_rate_node_create(struct devlink *devlink, void *priv, char *node_name,
|
||||
struct devlink_rate *parent);
|
||||
int
|
||||
devl_rate_leaf_create(struct devlink_port *devlink_port, void *priv,
|
||||
struct devlink_rate *parent);
|
||||
void devl_rate_leaf_destroy(struct devlink_port *devlink_port);
|
||||
void devl_rate_nodes_destroy(struct devlink *devlink);
|
||||
void devlink_port_linecard_set(struct devlink_port *devlink_port,
|
||||
|
||||
Reference in New Issue
Block a user