aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/devlink.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2022-07-29 09:10:38 +0200
committerDavid S. Miller <davem@davemloft.net>2022-08-01 12:14:00 +0100
commit09b278462f16569c63dd78ffa29bbfe048b4e604 (patch)
treebbe09c8a5128cd44458912393c0de7987ebe52db /net/core/devlink.c
parentnet: devlink: remove devlink_mutex (diff)
downloadlinux-dev-09b278462f16569c63dd78ffa29bbfe048b4e604.tar.xz
linux-dev-09b278462f16569c63dd78ffa29bbfe048b4e604.zip
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 <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r--net/core/devlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 06cd7c1a1f0a..889e7e3d3e8a 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,