diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-12-16 13:29:55 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-12-19 15:31:40 +0100 |
commit | cddbff470e3318834af518168d3a917b6e975062 (patch) | |
tree | 2932277f4dfc374f098cf39b24f0b52b89efffbe /net/wireless | |
parent | devlink: introduce __devl_is_registered() helper and use it instead of xa_get... (diff) | |
download | linux-cddbff470e3318834af518168d3a917b6e975062.tar.xz linux-cddbff470e3318834af518168d3a917b6e975062.zip |
devlink: send notifications only if there are listeners
Introduce devlink_nl_notify_need() helper and using it to check at the
beginning of notification functions to avoid overhead of composing
notification messages in case nobody listens.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions