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)
commitcbf6ab672eb425ac1cd7f8c7c4066f3bb0a78e50
treeb692994a7ed3f5a1e6d9b2a83552b6aeb9787e0b
parent38e3bfa86964961291760e7da6227794106d2247
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