OSDN Git Service

bpf: lru: Refactor LRU map tests in map_perf_test
authorMartin KaFai Lau <kafai@fb.com>
Fri, 14 Apr 2017 17:30:27 +0000 (10:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 17:55:52 +0000 (13:55 -0400)
commitbf8db5d243a103ccd3f6d82a110e2302608e248c
tree80e2505b50f17841299ae6273bcdbb4eeb04cc33
parent6467acbc70f011d5852f60f6e04825a268c8e8b0
bpf: lru: Refactor LRU map tests in map_perf_test

One more LRU test will be added later in this patch series.
In this patch, we first move all existing LRU map tests into
a single syscall (connect) first so that the future new
LRU test can be added without hunting another syscall.

One of the map name is also changed from percpu_lru_hash_map
to nocommon_lru_hash_map to avoid the confusion with percpu_hash_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>
samples/bpf/map_perf_test_kern.c
samples/bpf/map_perf_test_user.c