OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cff9084
)
bpf: Add support for batched ops in LPM trie maps
author
Pedro Tammela
<pctammela@mojatatu.com>
Tue, 23 Mar 2021 02:50:53 +0000
(23:50 -0300)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 26 Mar 2021 01:51:08 +0000
(18:51 -0700)
Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link:
https://lore.kernel.org/bpf/20210323025058.315763-2-pctammela@gmail.com
kernel/bpf/lpm_trie.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/lpm_trie.c
b/kernel/bpf/lpm_trie.c
index
cec792a
..
1b7b8a6
100644
(file)
--- a/
kernel/bpf/lpm_trie.c
+++ b/
kernel/bpf/lpm_trie.c
@@
-726,6
+726,9
@@
const struct bpf_map_ops trie_map_ops = {
.map_lookup_elem = trie_lookup_elem,
.map_update_elem = trie_update_elem,
.map_delete_elem = trie_delete_elem,
+ .map_lookup_batch = generic_map_lookup_batch,
+ .map_update_batch = generic_map_update_batch,
+ .map_delete_batch = generic_map_delete_batch,
.map_check_btf = trie_check_btf,
.map_btf_name = "lpm_trie",
.map_btf_id = &trie_map_btf_id,