Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-24 Thread John Fastabend
On 01/23/2018 10:16 AM, Daniel Borkmann wrote: > On 01/23/2018 06:18 AM, John Fastabend wrote: >> On 01/22/2018 09:01 PM, Alexei Starovoitov wrote: >>> On Tue, Jan 23, 2018 at 01:55:30PM +0900, Prashant Bhole wrote: On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: > On Tue, Jan 23, 2018 at

Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-23 Thread Daniel Borkmann
On 01/23/2018 06:18 AM, John Fastabend wrote: > On 01/22/2018 09:01 PM, Alexei Starovoitov wrote: >> On Tue, Jan 23, 2018 at 01:55:30PM +0900, Prashant Bhole wrote: >>> On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: > Bug: BP

Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-22 Thread John Fastabend
On 01/22/2018 09:01 PM, Alexei Starovoitov wrote: > On Tue, Jan 23, 2018 at 01:55:30PM +0900, Prashant Bhole wrote: >> >> >> On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: >>> On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: Bug: BPF programs and maps related to sockmaps test e

Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-22 Thread Alexei Starovoitov
On Tue, Jan 23, 2018 at 01:55:30PM +0900, Prashant Bhole wrote: > > > On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: > > On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: > > > Bug: BPF programs and maps related to sockmaps test exist in > > > memory even after test_maps ends > > >

Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-22 Thread Prashant Bhole
On 1/23/2018 1:38 PM, Alexei Starovoitov wrote: On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: Bug: BPF programs and maps related to sockmaps test exist in memory even after test_maps ends This patch fixes it by empyting sockmaps when test ends. Fixes: 6f6d33f3b3d0f ("bpf: s

Re: [PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-22 Thread Alexei Starovoitov
On Tue, Jan 23, 2018 at 01:30:44PM +0900, Prashant Bhole wrote: > Bug: BPF programs and maps related to sockmaps test exist in > memory even after test_maps ends > > This patch fixes it by empyting sockmaps when test ends. > > Fixes: 6f6d33f3b3d0f ("bpf: selftests add sockmap tests") > Signed-off

[PATCH bpf] bpf: test_maps: cleanup sockmaps when test ends

2018-01-22 Thread Prashant Bhole
Bug: BPF programs and maps related to sockmaps test exist in memory even after test_maps ends This patch fixes it by empyting sockmaps when test ends. Fixes: 6f6d33f3b3d0f ("bpf: selftests add sockmap tests") Signed-off-by: Prashant Bhole --- tools/testing/selftests/bpf/test_maps.c | 16 +++