Re: [PATCH bpf-next 2/6] selftests/bpf: Add tests for automatic map unpinning on load failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 7, 2019 at 8:52 AM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote:
>
> From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
>
> This add tests for the different variations of automatic map unpinning on
> load failure.
>
> Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
> ---

[...]

> 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);
>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux