diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-07-29 09:10:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-08-01 12:14:00 +0100 |
commit | 09b278462f16569c63dd78ffa29bbfe048b4e604 (patch) | |
tree | bbe09c8a5128cd44458912393c0de7987ebe52db /net | |
parent | d3efc2a6a6d851bcd53805309f4632e018007436 (diff) |
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')
-rw-r--r-- | net/core/devlink.c | 1 |
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, |