Re: unstable xdp tests. Was: [PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-18 Thread Andrii Nakryiko
On Mon, May 18, 2020 at 3:33 AM Jesper Dangaard Brouer wrote: > > On Mon, 18 May 2020 11:52:34 +0200 > Jesper Dangaard Brouer wrote: > > > ... I'm getting unrelated compile errors for selftests/bpf in > > bpf-next tree (HEAD 96586dd9268d2). > > > > The compile error, see below signature, happens

Re: unstable xdp tests. Was: [PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-18 Thread Jesper Dangaard Brouer
On Mon, 18 May 2020 11:52:34 +0200 Jesper Dangaard Brouer wrote: > ... I'm getting unrelated compile errors for selftests/bpf in > bpf-next tree (HEAD 96586dd9268d2). > > The compile error, see below signature, happens in > ./progs/bpf_iter_ipv6_route.c > (tools/testing/selftests/bpf/progs/bpf_

Re: unstable xdp tests. Was: [PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-18 Thread Jesper Dangaard Brouer
On Sat, 16 May 2020 21:02:01 -0700 Alexei Starovoitov wrote: > On Thu, May 14, 2020 at 3:51 AM Jesper Dangaard Brouer > wrote: > > > > Update the memory requirements, when adding xdp.frame_sz in BPF test_run > > function bpf_prog_test_run_xdp() which e.g. is used by XDP selftests. > > > > Specif

unstable xdp tests. Was: [PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-16 Thread Alexei Starovoitov
On Thu, May 14, 2020 at 3:51 AM Jesper Dangaard Brouer wrote: > > Update the memory requirements, when adding xdp.frame_sz in BPF test_run > function bpf_prog_test_run_xdp() which e.g. is used by XDP selftests. > > Specifically add the expected reserved tailroom, but also allocated a > larger memo

[PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-14 Thread Jesper Dangaard Brouer
Update the memory requirements, when adding xdp.frame_sz in BPF test_run function bpf_prog_test_run_xdp() which e.g. is used by XDP selftests. Specifically add the expected reserved tailroom, but also allocated a larger memory area to reflect that XDP frames usually comes in this format. Limit the