From: Jiri Pirko Date: Fri, 29 Jul 2022 07:10:38 +0000 (+0200) Subject: net: devlink: enable parallel ops on netlink interface X-Git-Tag: v6.0-rc1~141^2~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09b278462f16569c63dd78ffa29bbfe048b4e604;p=thirdparty%2Flinux.git net: devlink: enable parallel ops on netlink interface As the devlink_mutex was removed and all devlink instances are protected individually by devlink->lock mutex, allow the netlink ops to run in parallel and therefore allow user to execute commands on multiple devlink instances simultaneously. Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/net/core/devlink.c b/net/core/devlink.c index 06cd7c1a1f0a0..889e7e3d3e8af 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -9505,6 +9505,7 @@ static struct genl_family devlink_nl_family __ro_after_init = { .maxattr = DEVLINK_ATTR_MAX, .policy = devlink_nl_policy, .netnsok = true, + .parallel_ops = true, .pre_doit = devlink_nl_pre_doit, .post_doit = devlink_nl_post_doit, .module = THIS_MODULE,