aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/netdevsim/dev.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2022-11-02 17:02:02 +0100
committerJakub Kicinski <kuba@kernel.org>2022-11-03 20:48:33 -0700
commitd41c9dbd12745cfc1cb2946cd99016d83c2c5364 (patch)
tree8abc80328fdf9aecee84eadc2c9d7f9c521bcada /drivers/net/netdevsim/dev.c
parentnet: devlink: move port_type_netdev_checks() call to __devlink_port_type_set() (diff)
downloadwireguard-linux-d41c9dbd12745cfc1cb2946cd99016d83c2c5364.tar.xz
wireguard-linux-d41c9dbd12745cfc1cb2946cd99016d83c2c5364.zip
net: devlink: take RTNL in port_fill() function only if it is not held
Follow-up patch is going to introduce a netdevice notifier event processing which is called with RTNL mutex held. Processing of this will eventually lead to call to port_notity() and port_fill() which currently takes RTNL mutex internally. So as a temporary solution, propagate a bool indicating if the mutex is already held. This will go away in one of the follow-up patches. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/netdevsim/dev.c')
0 files changed, 0 insertions, 0 deletions