bpf: selftests: Add test for different inner map size
authorMartin KaFai Lau <kafai@fb.com>
Fri, 28 Aug 2020 01:18:19 +0000 (18:18 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 28 Aug 2020 13:41:30 +0000 (15:41 +0200)
commitd557ea39a5f894630c403b78703ac92b08b7dd62
tree714f7ac76f01cccffac5b91d4a6f04d6c7603f83
parent134fede4eecfcbe7900e789f625fa6f9c3a8cd0e
bpf: selftests: Add test for different inner map size

This patch tests the inner map size can be different
for reuseport_sockarray but has to be the same for
arraymap.  A new subtest "diff_size" is added for this.

The existing test is moved to a subtest "lookup_update".

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200828011819.1970825-1-kafai@fb.com
tools/testing/selftests/bpf/prog_tests/btf_map_in_map.c
tools/testing/selftests/bpf/progs/test_btf_map_in_map.c