diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2021-07-29 20:19:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-07-30 23:16:38 +0300 |
commit | 26713455048eb19122b1561b471d30710177ef97 (patch) | |
tree | 91c846c831266cdd737c0d3f5e78bc191558dfbe /kernel/rcu/rcuscale.c | |
parent | 05a7f4a8dff19999ca8a83a35ff4782689de7bfc (diff) | |
download | linux-26713455048eb19122b1561b471d30710177ef97.tar.xz |
devlink: Allocate devlink directly in requested net namespace
There is no need in extra call indirection and check from impossible
flow where someone tries to set namespace without prior call
to devlink_alloc().
Instead of this extra logic and additional EXPORT_SYMBOL, use specialized
devlink allocation function that receives net namespace as an argument.
Such specialized API allows clear view when devlink initialized in wrong
net namespace and/or kernel users don't try to change devlink namespace
under the hood.
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'kernel/rcu/rcuscale.c')
0 files changed, 0 insertions, 0 deletions