]> 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)
commit6bd66eab37fdf0b93e6e7c96064944a37ec5817a
treeb692994a7ed3f5a1e6d9b2a83552b6aeb9787e0b
parente4d82fdac9ef5362f529057c153cf48f04f74470
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