bpf, tests: add a test for htab lookup + update traversal
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 10 Jun 2017 22:50:44 +0000 (00:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 23:05:46 +0000 (19:05 -0400)
commit5ecf51fd9cc69a4a6099340b30f8171c7cd04394
tree696bcf06fc8772f4dac74b032f97f490ba7e8b02
parent36e24c003091a11ec847291c9a1d36d2ec92b155
bpf, tests: add a test for htab lookup + update traversal

Add a test case to track behaviour when traversing and updating the
htab map. We recently used such traversal, so it's quite useful to
keep it as an example in selftests.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_maps.c