-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map): Add GetNextKey and LookupAndDeleteElem
For BPFMapLow add the following wrapper methods: GetNextKey() -> bpf_map_get_next_key() LookupAndDeleteElem() -> bpf_map_lookup_and_delete_elem() LookupAndDeleteElemFlags() -> bpf_map_lookup_and_delete_elem_flags() In addition, introduce GetValueAndDeleteKey() and GetValueAndDeleteKeyFlags() helper methods to BPFMapLow which return a pre-allocated lookup value automatically. For BPFMap add the following wrapper methods: GetNextKey() -> bpf_map__get_next_key() LookupAndDeleteElem() -> bpf_map__lookup_and_delete_elem() As for BPFMapLow, introduce GetValueAndDeleteKey() and GetValueAndDeleteKeyFlags() helper methods to BPFMap. Signed-off-by: Tao Chen <chen.dylane@gmail.com> Co-authored-by: Geyslan Gregório <geyslan@gmail.com>
- Loading branch information
1 parent
a55c024
commit d1d119c
Showing
3 changed files
with
210 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters