Re: [PATCH v4] selftests: add headers_install to lib.mk

2018-07-25 Thread Anders Roxell
On Tue, 24 Jul 2018 at 19:11, Shuah Khan wrote: > > On 07/23/2018 02:49 PM, Anders Roxell wrote: > > On Thu, 7 Jun 2018 at 13:09, Anders Roxell wrote: > >> > >> If the kernel headers aren't installed we can't build all the tests. > >> Add a new mak

Re: [PATCH net-next 0/2] fixes for ipsec selftests

2018-06-21 Thread Anders Roxell
On Thu, 21 Jun 2018 at 02:32, Shannon Nelson wrote: > > On 6/20/2018 4:18 PM, Anders Roxell wrote: > > On Thu, 21 Jun 2018 at 00:26, Shannon Nelson > > wrote: > >> > >> On 6/20/2018 12:09 PM, Anders Roxell wrote: > >>> On Wed, 20

Re: [PATCH net-next 0/2] fixes for ipsec selftests

2018-06-20 Thread Anders Roxell
On Thu, 21 Jun 2018 at 00:26, Shannon Nelson wrote: > > On 6/20/2018 12:09 PM, Anders Roxell wrote: > > On Wed, 20 Jun 2018 at 07:42, Shannon Nelson > > wrote: > >> > >> A couple of bad behaviors in the ipsec selftest were pointed out > >

Re: [PATCH net-next 0/2] fixes for ipsec selftests

2018-06-20 Thread Anders Roxell
On Wed, 20 Jun 2018 at 07:42, Shannon Nelson wrote: > > A couple of bad behaviors in the ipsec selftest were pointed out > by Anders Roxell and are addressed here. > > Shannon Nelson (2): > selftests: rtnetlink: hide complaint from terminated monitor > selftests: rtne

Re: [PATCH] selftests: bpf: config: add config fragments

2018-06-14 Thread Anders Roxell
On 14 June 2018 at 13:06, William Tu wrote: > On Tue, Jun 12, 2018 at 5:08 PM, Daniel Borkmann wrote: >> On 06/12/2018 01:05 PM, Anders Roxell wrote: >>> Tests test_tunnel.sh fails due to config fragments ins't enabled. >>> >>> Fixes: 933a741e3b82 ("sel

[PATCH v2] selftests: net: reuseport_bpf_numa: don't fail if no numa support

2018-05-18 Thread Anders Roxell
The reuseport_bpf_numa test case fails there's no numa support. The test shouldn't fail if there's no support it should be skipped. Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/t

[PATCH] selftests: bpf: config: enable NET_SCH_INGRESS for xdp_meta.sh

2018-05-18 Thread Anders Roxell
meta pointer") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/bpf/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config index 983dd25d49f4..1eefe211a4a8 100644 ---

[PATCH v3] selftests: add headers_install to lib.mk

2018-05-14 Thread Anders Roxell
to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell <anders.rox...@linaro.org> Reviewed-by: Fathi Boudra <fathi.bou...@linaro.org> --- Makefile | 14 +- scripts/sub

[PATCH] net: ipv4: ipconfig: fix unused variable

2018-05-13 Thread Anders Roxell
the CONFIG_PROC_FS ifdef to fix the warning. Fixes: c04d2cb2009f ("ipconfig: Write NTP server IPs to /proc/net/ipconfig/ntp_servers") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- net/ipv4/ipconfig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

Re: linux-next: manual merge of the net-next tree with the net tree

2018-05-09 Thread Anders Roxell
On 9 May 2018 at 06:19, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > tools/testing/selftests/net/Makefile > > between commit: > > 1751eb42ddb5 ("selftests: net: use TEST_PROGS_EXTENDED") > > from the net tree

[PATCH] selftests: net: use TEST_PROGS_EXTENDED

2018-05-04 Thread Anders Roxell
: 9faedd643fd9 ("selftests: net: add in_netns.sh TEST_GEN_PROGS_EXTENDED") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/Makefile b/tools/testi

[PATCH] selftests: net: add udpgso* to TEST_GEN_FILES

2018-05-04 Thread Anders Roxell
Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index 44895de1a0c4..f0363387ef2f 100644 --- a/tools/testi

[PATCH v2] selftests: net: add in_netns.sh TEST_GEN_PROGS_EXTENDED

2018-04-25 Thread Anders Roxell
("selftests: net: add in_netns.sh to TEST_PROGS") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- respin against the 'net' tree. tools/testing/selftests/net/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/Makefile

[PATCH] selftests: net: add in_netns.sh TEST_GEN_PROGS_EXTENDED

2018-04-24 Thread Anders Roxell
("selftests: net: add in_netns.sh to TEST_PROGS") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/ne

[net-next regression] kselftest failure in fib_nl_newrule()

2018-04-24 Thread Anders Roxell
Hi, fib-onlink-tests.sh (from kselftest) found a regression between next-20180424 [1] (worked with tag next-20180423 [2]) here is tree commits that look suspicious specially this patch (sha: f9d4b0c1e969) rewrites fib_nl_newrule().his patch (sha: f9d4b0c1e969) rewrites fib_nl_newrule().

[PATCH v2] selftests: bpf: update .gitignore with missing file

2018-04-23 Thread Anders Roxell
Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF tests") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- Rebased against bpf-next. tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testi

Re: [PATCH] selftests: bpf: update .gitignore with missing file

2018-04-23 Thread Anders Roxell
On 23 April 2018 at 23:34, Daniel Borkmann <dan...@iogearbox.net> wrote: > On 04/23/2018 03:50 PM, Anders Roxell wrote: >> Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF tests") >> Signed-off-by: Anders Roxell <anders.rox...@linaro.org> >> --- >> tools/

[PATCH] selftests: net: update .gitignore with missing test

2018-04-23 Thread Anders Roxell
Fixes: 192dc405f308 ("selftests: net: add tcp_mmap program") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftest

[PATCH] selftests: bpf: update .gitignore with missing file

2018-04-23 Thread Anders Roxell
Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF tests") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/

[PATCH v2] selftests: add headers_install to lib.mk

2018-04-13 Thread Anders Roxell
to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell <anders.rox...@linaro.org> Reviewed-by: Fathi Boudra <fathi.bou...@linaro.org> --- Makefile | 14 +- scripts/sub

[PATCH] selftests: add headers_install to lib.mk

2018-04-12 Thread Anders Roxell
to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell <anders.rox...@linaro.org> Reviewed-by: Fathi Boudra <fathi.bou...@linaro.org> --- tools/testing/selftests/android/Makefile | 2 +- tools/testing/selftests/android/ion/Makefile

[PATCH] selftests: net: add in_netns.sh to TEST_PROGS

2018-04-11 Thread Anders Roxell
: No such file or directory [FAIL] In current code added in_netns.sh to be installed. Fixes: cc30c93fa020 ("selftests/net: ignore background traffic in psock_fanout") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/Makefile | 2 +- 1 file chan

[PATCH] selftests: bpf: update .gitignore with missing generated files

2018-04-10 Thread Anders Roxell
Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/bpf/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 9cf83f895d98..5e1ab2f0eb79 100644 --- a/tools/t

[PATCH] kernel/bpf/syscall: fix warning defined but not used

2018-04-03 Thread Anders Roxell
bpf_prog_attach_check_attach_type(const struct bpf_prog *prog, ^ Current code moves function bpf_prog_attach_check_attach_type inside ifdef CONFIG_CGROUP_BPF. Fixes: 5e43f899b03a ("bpf: Check attach type at prog load time") Signed-off-by: Anders Roxell <anders.rox.

[PATCH] selftests/net: enable fragments for fib-onlink-tests

2018-03-08 Thread Anders Roxell
) and VETH so we can create a vrf table and veth. Fixes: 153e1b84f477 ("selftests: Add FIB onlink tests") Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/net/config | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftes

[PATCH] selftest: net: reuseport_bpf_numa: don't fail if no numa support

2018-03-06 Thread Anders Roxell
The reuseport_bpf_numa test case fails there's no numa support. The test shouldn't fail if there's no support it should be skipped with a pass. Fixes: 3c2c3c16aaf6 ("reuseport, bpf: add test case for bpf_get_numa_node_id") Signed-off-by: Anders Roxell <anders.rox...@linaro.or

Re: Regression found when running LTP connect01 on next-20180301

2018-03-01 Thread Anders Roxell
On 1 March 2018 at 14:42, Paul Moore <p...@paul-moore.com> wrote: > On Thu, Mar 1, 2018 at 3:33 AM, Anders Roxell <anders.rox...@linaro.org> > wrote: >> Hi, >> >> I was running LTP's testcase connect01 [1] and found a regression in >> linux-next >

Regression found when running LTP connect01 on next-20180301

2018-03-01 Thread Anders Roxell
Hi, I was running LTP's testcase connect01 [1] and found a regression in linux-next (next-20180301). Bisect gave me this patch as the problematic patch (sha d452930fd3b9 "selinux: Add SCTP support") on a x86 target. Output from the test(LTP release 20180118): $ cd /opt/ltp/ $ cat

Re: [PATCH] selftest: fix kselftest-merge depend on 'RUNTIME_TESTING_MENU'

2018-02-27 Thread Anders Roxell
On 23 February 2018 at 08:05, Zong Li <zong...@gmail.com> wrote: > 2018-02-23 3:57 GMT+08:00 Anders Roxell <anders.rox...@linaro.org>: >> On 22 February 2018 at 12:53, Zong Li <zong...@gmail.com> wrote: >>> Since the 'commit d3deafaa8b5c ("lib/: ma

Re: [PATCH] selftest: fix kselftest-merge depend on 'RUNTIME_TESTING_MENU'

2018-02-22 Thread Anders Roxell
On 22 February 2018 at 12:53, Zong Li wrote: > Since the 'commit d3deafaa8b5c ("lib/: make RUNTIME_TESTS a menuconfig > to ease disabling it all")', the make kselftest-merge cannot merge the > config dependencies of kselftest to the existing .config file. > > These config

[PATCH] selftests/bpf: update gitignore with test_libbpf_open

2018-02-21 Thread Anders Roxell
bpf builds a test program for loading BPF ELF files. Add the executable to the .gitignore list. Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b

[PATCH] selftests/bpf: tcpbpf_kern: use in6_* macros from glibc

2018-02-21 Thread Anders Roxell
* macros definitions, use the one from glibc. Kernel headers will check for previous libc definitions by including include/linux/libc-compat.h. Reported-by: Daniel Díaz <daniel.d...@linaro.org> Signed-off-by: Anders Roxell <anders.rox...@linaro.org> --- tools/testing/selftests/bpf/test_tcpbp