diff options
| author | Kuniyuki Iwashima <kuniyu@google.com> | 2025-10-29 20:32:58 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-04 04:40:48 +0300 |
| commit | ab061f3347923b6e3aa7731056dc58cbe5044c9f (patch) | |
| tree | 7b1c2ef7aaa11e51f33dfd180d9941649324c4f7 /tools/testing/shared/linux/xarray.h | |
| parent | bc7ebc569e8cc768342dfb01af1a26c7fbef513e (diff) | |
| download | linux-ab061f3347923b6e3aa7731056dc58cbe5044c9f.tar.xz | |
mpls: Add mpls_dev_rcu().
mpls_dev_get() uses rcu_dereference_rtnl() to fetch dev->mpls_ptr.
We will replace RTNL with a dedicated mutex to protect the field.
Then, we will use rcu_dereference_protected() for clarity.
Let's add mpls_dev_rcu() for the RCU reader.
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20251029173344.2934622-7-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/shared/linux/xarray.h')
0 files changed, 0 insertions, 0 deletions
