]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtnl: add helper to check if a notification is needed
authorVictor Nogueira <victor@mojatatu.com>
Fri, 8 Dec 2023 19:28:42 +0000 (16:28 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:43:25 +0000 (10:43 +0200)
commitdb5d2b27e4efa97989a9be4a3fb141c9dad79ebf
tree60d8c13e2d565e7124b65e39febde8e707895c96
parent8ab0c35a9569296249b5fd04b90759c18de41ee0
rtnl: add helper to check if a notification is needed

[ Upstream commit 8439109b76a3c405808383bf9dd532fc4b9c2dbd ]

Building on the rtnl_has_listeners helper, add the rtnl_notify_needed
helper to check if we can bail out early in the notification routines.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Link: https://lore.kernel.org/r/20231208192847.714940-3-pctammela@mojatatu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 369609fc6272 ("tc: Ensure we have enough buffer space when sending filter netlink notifications")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/rtnetlink.h