diff options
author | Denis Salopek <[email protected]> | 2021-05-11 23:00:04 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2021-05-24 13:30:26 -0700 |
commit | 3e87f192b405960c0fe83e0925bd0dadf4f8cf43 (patch) | |
tree | ab5d250191d057ff1d0a166c400334df841505e3 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | f9bceaa59c5c47a8a08f48e19cbe887e500a1978 (diff) |
bpf: Add lookup_and_delete_elem support to hashtab
Extend the existing bpf_map_lookup_and_delete_elem() functionality to
hashtab map types, in addition to stacks and queues.
Create a new hashtab bpf_map_ops function that does lookup and deletion
of the element under the same bucket lock and add the created map_ops to
bpf.h.
Signed-off-by: Denis Salopek <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/4d18480a3e990ffbf14751ddef0325eed3be2966.1620763117.git.denis.salopek@sartura.hr
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions