]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bpf: lru: Add test_lru_sanity6 for BPF_F_NO_COMMON_LRU
authorMartin KaFai Lau <kafai@fb.com>
Fri, 14 Apr 2017 17:30:25 +0000 (10:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:55:52 +0000 (13:55 -0400)
commit9746f85686849df107c899f34188f977e78154b0
tree4b09000b1bb3d34295fb15be02441e4c59cc9f1e
parent82960fff09bc394e2a33d5369969410699c04861
bpf: lru: Add test_lru_sanity6 for BPF_F_NO_COMMON_LRU

test_lru_sanity3 is not applicable to BPF_F_NO_COMMON_LRU.
It just happens to work when PERCPU_FREE_TARGET == 16.

This patch:
1) Disable test_lru_sanity3 for BPF_F_NO_COMMON_LRU
2) Add test_lru_sanity6 to test list rotation for
   the BPF_F_NO_COMMON_LRU map.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/test_lru_map.c