]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Simplify devlink_pernet_pre_exit call
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 14 Aug 2021 09:57:26 +0000 (12:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Aug 2021 12:59:10 +0000 (13:59 +0100)
commit7b3f7ddb26fab53bcfe8d1be794fed1b996b9db6
treeb692994a7ed3f5a1e6d9b2a83552b6aeb9787e0b
parent09e1a3ea29f9d5e02508529cbf045b91fa565727
devlink: Simplify devlink_pernet_pre_exit call

The devlink_pernet_pre_exit() will be called if net namespace exits.

That routine is relevant for devlink instances that were assigned to
that namespaces first. This assignment is possible only with the following
command: "devlink reload DEV netns ...", which already checks reload support.

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