]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: selftests: Add tests for batched ops in LPM trie maps
authorPedro Tammela <pctammela@mojatatu.com>
Tue, 23 Mar 2021 02:50:54 +0000 (23:50 -0300)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Mar 2021 01:51:08 +0000 (18:51 -0700)
commit9c0aad1a05aec109d2f28b04c440dd6224a5b9bf
treeb2d40208e75a60e0edd2a540ed960f31de43c179
parent5b8774121409f9d287e722c9627482f436609e67
bpf: selftests: Add tests for batched ops in LPM trie maps

Uses the already existing infrastructure for testing batched ops.
The testing code is essentially the same, with minor tweaks for this use
case.

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-3-pctammela@gmail.com
tools/testing/selftests/bpf/map_tests/lpm_trie_map_batch_ops.c [new file with mode: 0644]