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)
commite9bd8cbd970bedd3cca8ee334c76ab90feb78760
treeb2d40208e75a60e0edd2a540ed960f31de43c179
parentf56387c534cc54d2578b962692e574e3edd8c3f6
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]