diff options
| author | Eric Dumazet <[email protected]> | 2024-05-03 19:20:57 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-05-07 11:14:50 +0200 |
| commit | 6890ab31d1a35444741e6150db19d64797db2919 (patch) | |
| tree | 9f0e4ae240841eb23698a9c4e45115929997b525 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 6747a5d4990b8c8d7392f7a06b7a4bb5f4ada80e (diff) | |
rtnetlink: do not depend on RTNL in rtnl_fill_proto_down()
Change dev_change_proto_down() and dev_change_proto_down_reason()
to write once on dev->proto_down and dev->proto_down_reason.
Then rtnl_fill_proto_down() can use READ_ONCE() annotations
and run locklessly.
rtnl_proto_down_size() should assume worst case,
because readng dev->proto_down_reason multiple
times would be racy without RTNL in the future.
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions