diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-02-06 10:41:51 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-07 14:13:55 +0100 |
commit | 565b4824c39fa335cba2028a09d7beb7112f3c9a (patch) | |
tree | e32e516f10cb4576738761dd594c506110f7b282 /drivers/net/hyperv | |
parent | bbb253b206b9c417928a6c827d038e457f3012e9 (diff) | |
download | linux-565b4824c39fa335cba2028a09d7beb7112f3c9a.tar.gz linux-565b4824c39fa335cba2028a09d7beb7112f3c9a.tar.bz2 linux-565b4824c39fa335cba2028a09d7beb7112f3c9a.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 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions