]> 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)
commitfb91197bd1df9e23d4bed985399d921be78d1752
treeb2d40208e75a60e0edd2a540ed960f31de43c179
parentc330498cc1290510b0a86a0cdec7f7fbb2981491
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]