summaryrefslogtreecommitdiffstats
path: root/net/devlink/param.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-12-16 13:29:56 +0100
committerPaolo Abeni <pabeni@redhat.com>2023-12-19 15:31:40 +0100
commit5648de0b1f2b68bffce9bdd49a276607b9a3e3d4 (patch)
treea368a145818c5e5d8e1b20b42215b0af4c59e96b /net/devlink/param.c
parentdevlink: send notifications only if there are listeners (diff)
downloadlinux-5648de0b1f2b68bffce9bdd49a276607b9a3e3d4.tar.xz
linux-5648de0b1f2b68bffce9bdd49a276607b9a3e3d4.zip
devlink: introduce a helper for netlink multicast send
Introduce a helper devlink_nl_notify_send() so each object notification function does not have to call genlmsg_multicast_netns() with the same arguments. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/devlink/param.c')
-rw-r--r--net/devlink/param.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/devlink/param.c b/net/devlink/param.c
index 7516b524ffb7..22bc3b500518 100644
--- a/net/devlink/param.c
+++ b/net/devlink/param.c
@@ -356,8 +356,7 @@ static void devlink_param_notify(struct devlink *devlink,
return;
}
- genlmsg_multicast_netns(&devlink_nl_family, devlink_net(devlink),
- msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL);
+ devlink_nl_notify_send(devlink, msg);
}
static void devlink_params_notify(struct devlink *devlink,