diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-07-16 13:02:39 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-19 05:10:48 +0200 |
commit | eb0e9fa2c6355e744d3ea7d07d34d89a4735320e (patch) | |
tree | 4cc16328a7079b102532abbd34d2ecae857dc822 /include/net/devlink.h | |
parent | mlxsw: convert driver to use unlocked devlink API during init/fini (diff) | |
download | linux-eb0e9fa2c6355e744d3ea7d07d34d89a4735320e.tar.xz linux-eb0e9fa2c6355e744d3ea7d07d34d89a4735320e.zip |
net: devlink: add unlocked variants of devlink_region_create/destroy() functions
Add unlocked variants of devlink_region_create/destroy() functions
to be used in drivers called-in with devlink->lock held.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 18ad88527847..391d401ddb55 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -1676,6 +1676,10 @@ int devlink_param_driverinit_value_get(struct devlink *devlink, u32 param_id, int devlink_param_driverinit_value_set(struct devlink *devlink, u32 param_id, union devlink_param_value init_val); void devlink_param_value_changed(struct devlink *devlink, u32 param_id); +struct devlink_region *devl_region_create(struct devlink *devlink, + const struct devlink_region_ops *ops, + u32 region_max_snapshots, + u64 region_size); struct devlink_region * devlink_region_create(struct devlink *devlink, const struct devlink_region_ops *ops, @@ -1684,6 +1688,7 @@ struct devlink_region * devlink_port_region_create(struct devlink_port *port, const struct devlink_port_region_ops *ops, u32 region_max_snapshots, u64 region_size); +void devl_region_destroy(struct devlink_region *region); void devlink_region_destroy(struct devlink_region *region); void devlink_port_region_destroy(struct devlink_region *region); |