]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Make sure devlink instance and port are in same net namespace
authorParav Pandit <parav@nvidia.com>
Wed, 25 Nov 2020 09:16:20 +0000 (11:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Nov 2020 01:26:34 +0000 (17:26 -0800)
commit7502af6fca677d351d6f5022694658eed0096118
tree1f561c33504395eff17a6e6c8fbbbe4f27a528dc
parent3032e55dcb3a9f7f1b5ea6d044a493dc7a2cfe5e
devlink: Make sure devlink instance and port are in same net namespace

When devlink reload operation is not used, netdev of an Ethernet port may
be present in different net namespace than the net namespace of the
devlink instance.

Ensure that both the devlink instance and devlink port netdev are located
in same net namespace.

Fixes: 5210c503927e ("net: devlink: allow to change namespaces during reload")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c