]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of LPM_TRIE map
authorYonghong Song <yhs@fb.com>
Thu, 18 Jan 2018 23:08:51 +0000 (15:08 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 19 Jan 2018 22:26:41 +0000 (23:26 +0100)
commitaa581e748ab2b1b81c5e52587e852c0ffe868100
treeb6d14d27dd9c79219b79291db99683a4ba8b9f07
parent93e5248d3ebbfd0a56b53dabd67c165ff91410a4
tools/bpf: add a testcase for MAP_GET_NEXT_KEY command of LPM_TRIE map

A test case is added in tools/testing/selftests/bpf/test_lpm_map.c
for MAP_GET_NEXT_KEY command. A four node trie, which
is described in kernel/bpf/lpm_trie.c, is built and the
MAP_GET_NEXT_KEY results are checked.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_lpm_map.c