diff options
author | Pedro Tammela <[email protected]> | 2023-12-08 16:28:43 -0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-11 18:52:57 -0800 |
commit | ddb6b284bdc32b6e218b3d90b5a745ea26620812 (patch) | |
tree | a1c5025b3d3cb5d7664e31e7d2c47535242133b8 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 8439109b76a3c405808383bf9dd532fc4b9c2dbd (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Pedro Tammela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions