diff options
| author | Eric Dumazet <edumazet@google.com> | 2026-06-04 14:13:37 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-05 17:46:17 -0700 |
| commit | f236240c9beba15ea6fc6580c6cc63c40725d3ff (patch) | |
| tree | 9de8566b3f33d78b9fba6d8865546aa84d176a12 /include | |
| parent | 2013ebb9b3819dd74a9b26634e49453046b63037 (diff) | |
bridge: provide lockless access to p->path_cost
Add READ_ONCE()/WRITE_ONCE() annotations around p->path_cost.
This is needed at least for sysfs show_path_cost(), BRCTL_GET_PORT_INFO
and upcoming RTNL avoidance in "ip link" dumps (cf br_port_fill_attrs()).
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260604141343.2124500-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
