Skip to content

Commit 9ef8858

Browse files
tammelakernel-patches-bot
authored andcommitted
bpf: add support for batched operations in LPM trie maps
Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
1 parent 46b2de5 commit 9ef8858

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernel/bpf/lpm_trie.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ const struct bpf_map_ops trie_map_ops = {
726726
.map_lookup_elem = trie_lookup_elem,
727727
.map_update_elem = trie_update_elem,
728728
.map_delete_elem = trie_delete_elem,
729+
.map_lookup_batch = generic_map_lookup_batch,
730+
.map_update_batch = generic_map_update_batch,
731+
.map_delete_batch = generic_map_delete_batch,
729732
.map_check_btf = trie_check_btf,
730733
.map_btf_name = "lpm_trie",
731734
.map_btf_id = &trie_map_btf_id,

0 commit comments

Comments
 (0)