Commit 15feb56
net: devlink: move netdev notifier block to dest namespace during reload
The notifier block tracking netdev changes in devlink is registered
during devlink_alloc() per-net, it is then unregistered
in devlink_free(). When devlink moves from net namespace to another one,
the notifier block needs to move along.
Fix this by adding forgotten call to move the block.
Reported-by: Ido Schimmel <idosch@idosch.org>
Fixes: 02a68a4 ("net: devlink: track netdev with devlink_port assigned")
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 3e52fba commit 15feb56
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4502 | 4502 | | |
4503 | 4503 | | |
4504 | 4504 | | |
4505 | | - | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
4506 | 4508 | | |
| 4509 | + | |
4507 | 4510 | | |
4508 | 4511 | | |
4509 | 4512 | | |
| |||
0 commit comments