mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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
@@ -1401,7 +1401,7 @@ static int __nsim_dev_port_add(struct nsim_dev *nsim_dev, enum nsim_dev_port_typ
|
||||
|
||||
if (nsim_dev_port_is_vf(nsim_dev_port)) {
|
||||
err = devl_rate_leaf_create(&nsim_dev_port->devlink_port,
|
||||
nsim_dev_port);
|
||||
nsim_dev_port, NULL);
|
||||
if (err)
|
||||
goto err_nsim_destroy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user