summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-02-06 10:41:51 +0100
committerPaolo Abeni <pabeni@redhat.com>2023-02-07 14:13:55 +0100
commit565b4824c39fa335cba2028a09d7beb7112f3c9a (patch)
treee32e516f10cb4576738761dd594c506110f7b282 /drivers/net/hyperv
parentbbb253b206b9c417928a6c827d038e457f3012e9 (diff)
downloadlinux-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