diff options
author | Moshe Shemesh <moshe@nvidia.com> | 2022-07-11 11:14:02 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-07-12 11:26:22 +0300 |
commit | 868232f5cd382c37a5005deb7be0620c6f7bc08d (patch) | |
tree | ea5a245786a92da2e4ae57b2a530abd527f55cb8 /net/core/devlink.c | |
parent | 03f9c47d0f7983bc73854ee34be6814b580ac7fc (diff) | |
download | linux-868232f5cd382c37a5005deb7be0620c6f7bc08d.tar.xz |
devlink: Remove unused function devlink_rate_nodes_destroy
The previous patch removed the last usage of the function
devlink_rate_nodes_destroy(). Thus, remove this function from devlink
API.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r-- | net/core/devlink.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index db61f3a341cb..1588e2246234 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -10096,24 +10096,6 @@ void devl_rate_nodes_destroy(struct devlink *devlink) EXPORT_SYMBOL_GPL(devl_rate_nodes_destroy); /** - * devlink_rate_nodes_destroy - destroy all devlink rate nodes on device - * - * @devlink: devlink instance - * - * Unset parent for all rate objects and destroy all rate nodes - * on specified device. - * - * Context: Takes and release devlink->lock <mutex>. - */ -void devlink_rate_nodes_destroy(struct devlink *devlink) -{ - mutex_lock(&devlink->lock); - devl_rate_nodes_destroy(devlink); - mutex_unlock(&devlink->lock); -} -EXPORT_SYMBOL_GPL(devlink_rate_nodes_destroy); - -/** * devlink_port_linecard_set - Link port with a linecard * * @devlink_port: devlink port |