]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
devlink: Simplify internal devlink params implementation
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 28 Oct 2021 13:23:21 +0000 (16:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 13:55:17 +0000 (14:55 +0100)
commitee775b56950faef934d6e9c2252de6e2e5a8e912
treefe8f7684d5d5c96f6a34b04b6f594c2045861998
parentb0e77fcc5dfde8be9b8fc801da3ccc8015d7ff4e
devlink: Simplify internal devlink params implementation

Reduce extra indirection from devlink_params_*() API. Such change
makes it clear that we can drop devlink->lock from these flows, because
everything is executed when the devlink is not registered yet.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c