tools: add selftest for BPF_F_ZERO_SEED
authorLorenz Bauer <lmb@cloudflare.com>
Fri, 16 Nov 2018 11:41:11 +0000 (11:41 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Nov 2018 23:53:40 +0000 (00:53 +0100)
commitbf5d68c7304008ef838f1a2ca1aae8fab74d633d
treed134d18f7e5d8932d474d5765ed07b051fc31360
parent608114e441ad3a4fa1fced4d6d00653a34765eee
tools: add selftest for BPF_F_ZERO_SEED

Check that iterating two separate hash maps produces the same
order of keys if BPF_F_ZERO_SEED is used.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_maps.c