[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPhsuW5stGGGiVH9dSHC4i0kwNcrUhj892DypkfzL=b7woRLvA@mail.gmail.com>
Date: Fri, 8 Nov 2019 11:33:48 -0800
From: Song Liu <liu.song.a23@...il.com>
To: Toke Høiland-Jørgensen <toke@...hat.com>
Cc: Daniel Borkmann <daniel@...earbox.net>,
Alexei Starovoitov <ast@...nel.org>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
Jesper Dangaard Brouer <brouer@...hat.com>,
Andrii Nakryiko <andrii.nakryiko@...il.com>,
David Miller <davem@...emloft.net>,
Networking <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH bpf-next 2/6] selftests/bpf: Add tests for automatic map
unpinning on load failure
On Thu, Nov 7, 2019 at 8:52 AM Toke Høiland-Jørgensen <toke@...hat.com> wrote:
>
> From: Toke Høiland-Jørgensen <toke@...hat.com>
>
> This add tests for the different variations of automatic map unpinning on
> load failure.
>
> Signed-off-by: Toke Høiland-Jørgensen <toke@...hat.com>
> ---
[...]
> diff --git a/tools/testing/selftests/bpf/progs/test_pinning.c b/tools/testing/selftests/bpf/progs/test_pinning.c
> index f69a4a50d056..f20e7e00373f 100644
> --- a/tools/testing/selftests/bpf/progs/test_pinning.c
> +++ b/tools/testing/selftests/bpf/progs/test_pinning.c
> @@ -21,7 +21,7 @@ struct {
> } nopinmap SEC(".maps");
>
> struct {
> - __uint(type, BPF_MAP_TYPE_ARRAY);
> + __uint(type, BPF_MAP_TYPE_HASH);
Why do we need this change?
> __uint(max_entries, 1);
> __type(key, __u32);
> __type(value, __u64);
>
Powered by blists - more mailing lists