diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2025-03-16 07:05:37 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-19 18:03:05 +0300 |
commit | 47979314c0fe245ed54306e2f91b3f819c7c0f9f (patch) | |
tree | 7d62e24804b291cb74657d4aedfd7a8ec0114fca /rust/helpers/helpers.c | |
parent | f2ac0e5d1c4dcc55d6510dcaefb8f45661a9a1fb (diff) | |
download | linux-47979314c0fe245ed54306e2f91b3f819c7c0f9f.tar.xz |
bpf: Convert lpm_trie.c to rqspinlock
Convert all LPM trie usage of raw_spinlock to rqspinlock.
Note that rcu_dereference_protected in trie_delete_elem is switched over
to plain rcu_dereference, the RCU read lock should be held from BPF
program side or eBPF syscall path, and the trie->lock is just acquired
before the dereference. It is not clear the reason the protected variant
was used from the commit history, but the above reasoning makes sense so
switch over.
Closes: https://lore.kernel.org/lkml/000000000000adb08b061413919e@google.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250316040541.108729-22-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions