Re: [PATCH] bpf: Fix test_lru_sanity5() in test_lru_map.c

2017-01-17 Thread David Miller
From: Martin KaFai Lau Date: Mon, 16 Jan 2017 22:17:29 -0800 > test_lru_sanity5() fails when the number of online cpus > is fewer than the number of possible cpus. It can be > reproduced with qemu by using cmd args "--smp cpus=2,maxcpus=8". > > The problem is the loop in

Re: [PATCH] bpf: Fix test_lru_sanity5() in test_lru_map.c

2017-01-17 Thread Alexei Starovoitov
On 1/17/17 1:07 AM, Daniel Borkmann wrote: On 01/17/2017 07:17 AM, Martin KaFai Lau wrote: test_lru_sanity5() fails when the number of online cpus is fewer than the number of possible cpus. It can be reproduced with qemu by using cmd args "--smp cpus=2,maxcpus=8". The problem is the loop in

Re: [PATCH] bpf: Fix test_lru_sanity5() in test_lru_map.c

2017-01-17 Thread Daniel Borkmann
On 01/17/2017 07:17 AM, Martin KaFai Lau wrote: test_lru_sanity5() fails when the number of online cpus is fewer than the number of possible cpus. It can be reproduced with qemu by using cmd args "--smp cpus=2,maxcpus=8". The problem is the loop in test_lru_sanity5() is testing 'i' which is

[PATCH] bpf: Fix test_lru_sanity5() in test_lru_map.c

2017-01-16 Thread Martin KaFai Lau
test_lru_sanity5() fails when the number of online cpus is fewer than the number of possible cpus. It can be reproduced with qemu by using cmd args "--smp cpus=2,maxcpus=8". The problem is the loop in test_lru_sanity5() is testing 'i' which is incorrect. This patch: 1. Make sched_next_online()