Eric Dumazet 6890ab31d1 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 <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-05-07 11:14:50 +02:00
..
2024-04-30 18:32:38 -07:00
2024-02-20 15:32:45 +01:00
2024-01-11 10:07:29 -08:00
2024-05-01 19:06:32 -07:00
2024-05-06 19:14:56 -07:00
2024-05-06 19:14:56 -07:00
2024-05-06 19:12:08 -07:00
2024-05-06 19:14:56 -07:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00