Commit 565b482
devlink: change port event netdev notifier from per-net to global
Currently only the network namespace of devlink instance is monitored
for port events. If netdev is moved to a different namespace and then
unregistered, NETDEV_PRE_UNINIT is missed which leads to trigger
following WARN_ON in devl_port_unregister().
WARN_ON(devlink_port->type != DEVLINK_PORT_TYPE_NOTSET);
Fix this by changing the netdev notifier from per-net to global so no
event is missed.
Fixes: 02a68a4 ("net: devlink: track netdev with devlink_port assigned")
Signed-off-by: Jiri Pirko <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent bbb253b commit 565b482
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9979 | 9979 | | |
9980 | 9980 | | |
9981 | 9981 | | |
9982 | | - | |
| 9982 | + | |
9983 | 9983 | | |
9984 | 9984 | | |
9985 | 9985 | | |
| |||
10171 | 10171 | | |
10172 | 10172 | | |
10173 | 10173 | | |
10174 | | - | |
10175 | | - | |
| 10174 | + | |
10176 | 10175 | | |
10177 | 10176 | | |
10178 | 10177 | | |
| |||
10503 | 10502 | | |
10504 | 10503 | | |
10505 | 10504 | | |
| 10505 | + | |
| 10506 | + | |
10506 | 10507 | | |
10507 | 10508 | | |
10508 | 10509 | | |
| |||
10512 | 10513 | | |
10513 | 10514 | | |
10514 | 10515 | | |
| 10516 | + | |
| 10517 | + | |
10515 | 10518 | | |
10516 | 10519 | | |
10517 | 10520 | | |
| |||
0 commit comments