summaryrefslogtreecommitdiff
path: root/net/sched/act_api.c
diff options
context:
space:
mode:
authorPedro Tammela <pctammela@mojatatu.com>2023-12-08 22:28:43 +0300
committerJakub Kicinski <kuba@kernel.org>2023-12-12 05:52:57 +0300
commitddb6b284bdc32b6e218b3d90b5a745ea26620812 (patch)
treea1c5025b3d3cb5d7664e31e7d2c47535242133b8 /net/sched/act_api.c
parent8439109b76a3c405808383bf9dd532fc4b9c2dbd (diff)
downloadlinux-ddb6b284bdc32b6e218b3d90b5a745ea26620812.tar.xz
rtnl: add helper to send if skb is not null
This is a convenience helper for routines handling conditional rtnl events, that is code that might send a notification depending on rtnl_has_listeners/rtnl_notify_needed. Instead of: if (skb) rtnetlink_send(...) Use: rtnetlink_maybe_send(...) Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Pedro Tammela <pctammela@mojatatu.com> Link: https://lore.kernel.org/r/20231208192847.714940-4-pctammela@mojatatu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/act_api.c')
0 files changed, 0 insertions, 0 deletions