diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-10-08 21:47:32 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-10-10 16:39:35 +0300 |
commit | 07cc7b0b942bf55ef1a471470ecda8d2a6a6541f (patch) | |
tree | 198326270f4756e9313806fec12a8f0cfe691b53 /tools/perf/scripts/python/task-analyzer.py | |
parent | 9a3cd877dc93061fbbe0c834d53d89639e7ea46a (diff) | |
download | linux-07cc7b0b942bf55ef1a471470ecda8d2a6a6541f.tar.xz |
rtnetlink: Add bulk registration helpers for rtnetlink message handlers.
Before commit addf9b90de22 ("net: rtnetlink: use rcu to free rtnl message
handlers"), once rtnl_msg_handlers[protocol] was allocated, the following
rtnl_register_module() for the same protocol never failed.
However, after the commit, rtnl_msg_handler[protocol][msgtype] needs to
be allocated in each rtnl_register_module(), so each call could fail.
Many callers of rtnl_register_module() do not handle the returned error,
and we need to add many error handlings.
To handle that easily, let's add wrapper functions for bulk registration
of rtnetlink message handlers.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions