[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4BzaXcNwYzkpsAmbVb10KaaSVcoci=qcVi4QcdU3oVGAR7A@mail.gmail.com>
Date: Thu, 24 Oct 2019 20:00:18 -0700
From: Andrii Nakryiko <andrii.nakryiko@...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>,
David Miller <davem@...emloft.net>,
Networking <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH bpf-next v2 2/4] libbpf: Store map pin path and status in
struct bpf_map
On Thu, Oct 24, 2019 at 6:11 AM Toke Høiland-Jørgensen <toke@...hat.com> wrote:
>
> From: Toke Høiland-Jørgensen <toke@...hat.com>
>
> Support storing and setting a pin path in struct bpf_map, which can be used
> for automatic pinning. Also store the pin status so we can avoid attempts
> to re-pin a map that has already been pinned (or reused from a previous
> pinning).
>
> Signed-off-by: Toke Høiland-Jørgensen <toke@...hat.com>
> ---
Looks good!
Acked-by: Andrii Nakryiko <andriin@...com>
> tools/lib/bpf/libbpf.c | 115 ++++++++++++++++++++++++++++++++++++----------
> tools/lib/bpf/libbpf.h | 3 +
> tools/lib/bpf/libbpf.map | 3 +
> 3 files changed, 97 insertions(+), 24 deletions(-)
>
Powered by blists - more mailing lists