]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: devlink: remove net namespace check from devlink_nl_port_fill()
authorJiri Pirko <jiri@nvidia.com>
Wed, 2 Nov 2022 16:02:06 +0000 (17:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Nov 2022 03:48:34 +0000 (20:48 -0700)
commitd0f5172629339f4a9cbbe5f9ae51cea48b4af333
tree06f5007fd4b868fe43ca11c444666248f1c3abd8
parentc80965784dbf2fd624be654c1e73c24beada7441
net: devlink: remove net namespace check from devlink_nl_port_fill()

It is ensured by the netdevice notifier event processing, that only
netdev pointers from the same net namespaces are filled. Remove the
net namespace check from devlink_nl_port_fill() as it is no longer
needed.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c