]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: relax test_maps check
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 23 Jan 2015 01:11:09 +0000 (17:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 01:20:40 +0000 (17:20 -0800)
commit63b173cdeff80b7904df0966b70195d50a0bd03d
tree05f6de4541734b82240629d9a21cb3df1b83d7ef
parent3fb6a4fc2d78c57eb811a00f53d2c01bb8ce2769
samples: bpf: relax test_maps check

hash map is unordered, so get_next_key() iterator shouldn't
rely on particular order of elements. So relax this test.

Fixes: 2a219a7a2916 ("bpf: add a testsuite for eBPF maps")
Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/test_maps.c