Commit f56387c5 authored by Pedro Tammela's avatar Pedro Tammela Committed by Alexei Starovoitov

bpf: Add support for batched ops in LPM trie maps

Suggested-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarPedro Tammela <pctammela@mojatatu.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210323025058.315763-2-pctammela@gmail.com
parent cff90846
...@@ -726,6 +726,9 @@ const struct bpf_map_ops trie_map_ops = { ...@@ -726,6 +726,9 @@ const struct bpf_map_ops trie_map_ops = {
.map_lookup_elem = trie_lookup_elem, .map_lookup_elem = trie_lookup_elem,
.map_update_elem = trie_update_elem, .map_update_elem = trie_update_elem,
.map_delete_elem = trie_delete_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_check_btf = trie_check_btf,
.map_btf_name = "lpm_trie", .map_btf_name = "lpm_trie",
.map_btf_id = &trie_map_btf_id, .map_btf_id = &trie_map_btf_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment