diff options
author | Kuniyuki Iwashima <[email protected]> | 2024-10-17 11:31:36 -0700 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-10-24 16:03:40 +0200 |
commit | b7d2fc9ad7fe75b536f94409b7f1e90e12e4f44d (patch) | |
tree | 2156065326437598def2b8592e8cbf281f87224c /tools/perf/scripts/python | |
parent | 8786e98dd0ebb8ab3adfddd3517f3505c3a61c23 (diff) |
phonet: Don't hold RTNL for getaddr_dumpit().
getaddr_dumpit() already relies on RCU and does not need RTNL.
Let's use READ_ONCE() for ifindex and register getaddr_dumpit()
with RTNL_FLAG_DUMP_UNLOCKED.
While at it, the retval of getaddr_dumpit() is changed to combine
NLMSG_DONE and save recvmsg() as done in 58a4ff5d77b1 ("phonet: no
longer hold RTNL in route_dumpit()").
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions