Re: [PATCH bpf-next v5 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2021-01-22 Thread Andrii Nakryiko
On Fri, Jan 22, 2021 at 6:35 AM Florent Revest wrote: > > On Thu, Jan 21, 2021 at 8:55 AM Andrii Nakryiko > wrote: > > > > On Tue, Jan 19, 2021 at 8:00 AM Florent Revest wrote: > > > > > > Currently, the selftest for the BPF socket_cookie helpers is built and > > > run independently from

Re: [PATCH bpf-next v5 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2021-01-22 Thread Florent Revest
On Thu, Jan 21, 2021 at 8:55 AM Andrii Nakryiko wrote: > > On Tue, Jan 19, 2021 at 8:00 AM Florent Revest wrote: > > > > Currently, the selftest for the BPF socket_cookie helpers is built and > > run independently from test_progs. It's easy to forget and hard to > > maintain. > > > > This patch

Re: [PATCH bpf-next v5 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2021-01-21 Thread Andrii Nakryiko
On Tue, Jan 19, 2021 at 8:00 AM Florent Revest wrote: > > Currently, the selftest for the BPF socket_cookie helpers is built and > run independently from test_progs. It's easy to forget and hard to > maintain. > > This patch moves the socket cookies test into prog_tests/ and vastly > simplifies

Re: [PATCH bpf-next v5 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2021-01-20 Thread KP Singh
On Tue, Jan 19, 2021 at 5:00 PM Florent Revest wrote: > > Currently, the selftest for the BPF socket_cookie helpers is built and > run independently from test_progs. It's easy to forget and hard to > maintain. > > This patch moves the socket cookies test into prog_tests/ and vastly > simplifies

[PATCH bpf-next v5 3/4] selftests/bpf: Integrate the socket_cookie test to test_progs

2021-01-19 Thread Florent Revest
Currently, the selftest for the BPF socket_cookie helpers is built and run independently from test_progs. It's easy to forget and hard to maintain. This patch moves the socket cookies test into prog_tests/ and vastly simplifies its logic by: - rewriting the loading code with BPF skeletons -