[PATCH] dpaa_eth: fix build errorr in dpaa_fq_init

2020-12-03 Thread Anders Roxell
that extra argument. Signed-off-by: Anders Roxell --- I think this issue is seen since both patches went in at the same time to bpf-next and net-next. drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/frees

[PATCH] security: fix the default value of secid_to_secctx hook

2020-05-12 Thread Anders Roxell
Fixes: 98e828a0650f ("security: Refactor declaration of LSM hooks") Signed-off-by: Anders Roxell --- include/linux/lsm_hook_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h index b9e73d736e13..31eb

Re: [PATCH net-next] net: ethernet: ti: am65-cpts: fix build

2020-05-05 Thread Anders Roxell
will create below dependencies and for NFS boot + CPTS all of them > have to be built-in. > PTP_1588_CLOCK -> TI_K3_AM65_CPTS -> TI_K3_AM65_CPSW_NUSS > > While here, clean up TI_K3_AM65_CPTS definition. > > Fixes: b1f66a5bee07 ("net: ethernet: ti: am65-cpsw-nuss: enab

Re: [PATCH net-next 3/7] net: ethernet: ti: am65-cpsw-nuss: enable packet timestamping support

2020-05-05 Thread Anders Roxell
On Tue, 5 May 2020 at 14:20, Grygorii Strashko wrote: > > Hi Anders, Hi Grygorii, > > On 05/05/2020 14:59, Anders Roxell wrote: > > On Tue, 5 May 2020 at 13:16, Anders Roxell wrote: > >> On Tue, 5 May 2020 at 13:05, Grygorii Strashko > >> wrote: > >&

Re: [PATCH net-next 3/7] net: ethernet: ti: am65-cpsw-nuss: enable packet timestamping support

2020-05-05 Thread Anders Roxell
On Tue, 5 May 2020 at 13:16, Anders Roxell wrote: > > On Tue, 5 May 2020 at 13:05, Grygorii Strashko > wrote: > > > > hi Anders, > > Hi Grygorii, Hi again, > > > > > On 05/05/2020 13:17, Anders Roxell wrote: > > > On Fri, 1 May 2020 at 22:50,

Re: [PATCH net-next 3/7] net: ethernet: ti: am65-cpsw-nuss: enable packet timestamping support

2020-05-05 Thread Anders Roxell
On Tue, 5 May 2020 at 13:05, Grygorii Strashko wrote: > > hi Anders, Hi Grygorii, > > On 05/05/2020 13:17, Anders Roxell wrote: > > On Fri, 1 May 2020 at 22:50, Grygorii Strashko > > wrote: > >> > >> The MCU CPSW Common Platform Time Sync (CPTS) pro

Re: [PATCH net-next 3/7] net: ethernet: ti: am65-cpsw-nuss: enable packet timestamping support

2020-05-05 Thread Anders Roxell
On Fri, 1 May 2020 at 22:50, Grygorii Strashko wrote: > > The MCU CPSW Common Platform Time Sync (CPTS) provides possibility to > timestamp TX PTP packets and all RX packets. > > This enables corresponding support in TI AM65x/J721E MCU CPSW driver. > > Signed-off-by: Grygorii Strashko > --- > dr

[PATCH] batman-adv: fix warning in function batadv_v_elp_get_throughput

2019-02-22 Thread Anders Roxell
370:13: warning: ‘sinfo.pertid’ may be used uninitialized in this function [-Wmaybe-uninitialized] kfree(sinfo->pertid); ~^~~~ Rework so that we only release '&sinfo' if cfg80211_get_station returns zero. Signed-off-by: Anders Roxell --- net/batman-adv/bat_v_elp

[PATCH v2] bpf: test_bpf: turn of preemption in function __run_once

2019-02-22 Thread Anders Roxell
ption disabled") highlighted the issue. Suggested-by: Arnd Bergmann Signed-off-by: Anders Roxell --- lib/test_bpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index f3e570722a7e..0845f635f404 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c

Re: [PATCH] bpf: test_bpf: turn of preemption in function __run_once

2019-02-22 Thread Anders Roxell
On Thu, 21 Feb 2019 at 16:38, Daniel Borkmann wrote: > > On 02/21/2019 09:44 AM, Anders Roxell wrote: > > When running test seccomp_bpf the following splat occurs: > > > > [ RUN ] > > global.secseccomp_bpf.c:2136:global.detect_seccomp_filter_flags:Expected 22

[PATCH] bpf: test_bpf: turn of preemption in function __run_once

2019-02-21 Thread Anders Roxell
loop over function 'BPF_PROG_RUN(...)'. Commit 568f196756ad ("bpf: check that BPF programs run with preemption disabled") highlighted the issue. Suggested-by: Arnd Bergmann Signed-off-by: Anders Roxell --- lib/test_bpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --gi

Re: [PATCH net] iptunnel: NULL pointer deref for ip_md_tunnel_xmit

2019-02-20 Thread Anders Roxell
s to use skb_valid_dst(skb) - it checks > for DST_METADATA also, and with that fix in place, the > problem - which was previously 100% reproducible - disappears. > > The below patch resolves the panic and all bpf tunnel tests pass > without incident. > > Fixes: c8b34e680a09 (&

[PATCH] netfilter: ipt_CLUSTERIP: fix warning unused variable cn

2019-01-23 Thread Anders Roxell
pernet(net); ^~ Rework so the variable 'cn' is declared inside "#ifdef CONFIG_PROC_FS". Fixes: b12f7bad5ad3 ("netfilter: ipt_CLUSTERIP: remove wrong WARN_ON_ONCE in netns exit routine") Signed-off-by: Anders Roxell --- net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 +- 1

[PATCH] selftests: bpf: install files tcp_(server|client)*.py

2019-01-08 Thread Anders Roxell
When test_tcpbpf_user runs it complains that it can't find files tcp_server.py and tcp_client.py. Rework so that tcp_server.py and tcp_client.py gets installed, added them to the variable TEST_PROGS_EXTENDED. Fixes: d6d4f60c3a09 ("bpf: add selftest for tcpbpf") Signed-off-by

[PATCH] selftests: bpf: add missing executables to .gitignore

2019-01-08 Thread Anders Roxell
Fixes: 8c4905b995c6 ("libbpf: make sure bpf headers are c++ include-able") Signed-off-by: Anders Roxell --- tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitig

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

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 Jun 2018 at 07:4

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 (&quo

[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 --- tools/testing/selftests

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

2018-05-18 Thread Anders Roxell
s for meta pointer") Signed-off-by: Anders Roxell --- 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 --- a/tools/testing/selftests/bpf/con

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

2018-05-14 Thread Anders Roxell
p_srcdir needs to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell Reviewed-by: Fathi Boudra --- Makefile | 14 +- scripts/subarch.include | 13 + too

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

2018-05-13 Thread Anders Roxell
inside 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 --- net/ipv4/ipconfig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/ipv4/ipconfig.c b

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 and commits: > > a7b1

[PATCH] selftests: net: use TEST_PROGS_EXTENDED

2018-05-04 Thread Anders Roxell
ould be used. Fixes: 9faedd643fd9 ("selftests: net: add in_netns.sh TEST_GEN_PROGS_EXTENDED") Signed-off-by: Anders Roxell --- 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/n

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

2018-05-04 Thread Anders Roxell
) Signed-off-by: Anders Roxell --- 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/testing/selftests/net/Makef

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

2018-04-25 Thread Anders Roxell
3dd92 ("selftests: net: add in_netns.sh to TEST_PROGS") Signed-off-by: Anders Roxell --- 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 b/tools/testi

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

2018-04-24 Thread Anders Roxell
3dd92 ("selftests: net: add in_netns.sh to TEST_PROGS") Signed-off-by: Anders Roxell --- 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/net/Makefile index c3761c35f54

[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(). b16fb418

[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 --- 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/testing/selftests/bpf/.gitig

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

2018-04-23 Thread Anders Roxell
On 23 April 2018 at 23:34, Daniel Borkmann wrote: > On 04/23/2018 03:50 PM, Anders Roxell wrote: >> Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF tests") >> Signed-off-by: Anders Roxell >> --- >> tools/testing/selftests/bpf/.gitignore | 1 + >> 1 file chang

[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 --- tools/testing/selftests/net/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore index c6

[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 --- tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 5e1ab2f0eb79..3e3b3ced3

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

2018-04-13 Thread Anders Roxell
p_srcdir needs to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell Reviewed-by: Fathi Boudra --- Makefile | 14 +- scripts/subarch.include | 13 + too

[PATCH] selftests: add headers_install to lib.mk

2018-04-12 Thread Anders Roxell
p_srcdir needs to be set to the linux-rootdir to be able to generate the kernel headers. Signed-off-by: Anders Roxell Reviewed-by: Fathi Boudra --- tools/testing/selftests/android/Makefile | 2 +- tools/testing/selftests/android/ion/Makefile | 1 + tools/testing/selftests/bpf/Makef

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

2018-04-11 Thread Anders Roxell
h: 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 --- tools/testing/selftests/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 de

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

2018-04-10 Thread Anders Roxell
Signed-off-by: Anders Roxell --- 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/testing/selftests/bpf/.gitignore

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

2018-04-03 Thread Anders Roxell
c int 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 --- kerne

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

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

[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 --- to

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 wrote: > On Thu, Mar 1, 2018 at 3:33 AM, Anders Roxell > wrote: >> Hi, >> >> I was running LTP's testcase connect01 [1] and found a regression in >> linux-next >> (next-20180301). Bisect gave me this patch as t

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 runtest/syscall

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 wrote: > 2018-02-23 3:57 GMT+08:00 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")&#

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 dependencies of kselftest

[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 --- 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] selftests/bpf: tcpbpf_kern: use in6_* macros from glibc

2018-02-21 Thread Anders Roxell
the kernel have in6_* 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 Signed-off-by: Anders Roxell --- tools/testing/selftests/bpf/test_tcpbpf_kern.c | 1 - 1 file changed, 1 delet