diff options
author | 2023-02-06 10:41:51 +0100 | |
---|---|---|
committer | 2023-02-07 14:13:55 +0100 | |
commit | 565b4824c39fa335cba2028a09d7beb7112f3c9a (patch) | |
tree | e32e516f10cb4576738761dd594c506110f7b282 /Documentation/admin-guide/nfs | |
parent | selftests: ocelot: tc_flower_chains: make test_vlan_ingress_modify() more com... (diff) | |
download | linux-565b4824c39f.tar.gz linux-565b4824c39f.tar.bz2 linux-565b4824c39f.zip |
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: 02a68a47eade ("net: devlink: track netdev with devlink_port assigned")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://lore.kernel.org/r/20230206094151.2557264-1-jiri@resnulli.us
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'Documentation/admin-guide/nfs')
0 files changed, 0 insertions, 0 deletions