lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <434eb25b-5d1a-4b33-232e-6735fc00e531@fb.com>
Date:   Thu, 21 Nov 2019 18:30:09 +0000
From:   Yonghong Song <yhs@...com>
To:     Brian Vazquez <brianvv@...gle.com>,
        Brian Vazquez <brianvv.kernel@...il.com>,
        Alexei Starovoitov <ast@...nel.org>,
        "Daniel Borkmann" <daniel@...earbox.net>,
        "David S . Miller" <davem@...emloft.net>
CC:     Stanislav Fomichev <sdf@...gle.com>,
        Petar Penkov <ppenkov@...gle.com>,
        Willem de Bruijn <willemb@...gle.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>
Subject: Re: [PATCH v2 bpf-next 7/9] libbpf: add libbpf support to batch ops



On 11/19/19 11:30 AM, Brian Vazquez wrote:
> From: Yonghong Song <yhs@...com>
> 
> Added four libbpf API functions to support map batch operations:
>    . int bpf_map_delete_batch( ... )
>    . int bpf_map_lookup_batch( ... )
>    . int bpf_map_lookup_and_delete_batch( ... )
>    . int bpf_map_update_batch( ... )
> 
> Signed-off-by: Yonghong Song <yhs@...com>
> ---
>   tools/lib/bpf/bpf.c      | 61 ++++++++++++++++++++++++++++++++++++++++
>   tools/lib/bpf/bpf.h      | 14 +++++++++
>   tools/lib/bpf/libbpf.map |  4 +++
>   3 files changed, 79 insertions(+)
> 
> diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
> index 98596e15390fb..9acd9309b47b3 100644
> --- a/tools/lib/bpf/bpf.c
> +++ b/tools/lib/bpf/bpf.c
> @@ -443,6 +443,67 @@ int bpf_map_freeze(int fd)
>   	return sys_bpf(BPF_MAP_FREEZE, &attr, sizeof(attr));
>   }
>   
[...]>   LIBBPF_API int bpf_obj_pin(int fd, const char *pathname);
>   LIBBPF_API int bpf_obj_get(const char *pathname);
>   LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd,
> diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
> index 8ddc2c40e482d..56462fea66f74 100644
> --- a/tools/lib/bpf/libbpf.map
> +++ b/tools/lib/bpf/libbpf.map
> @@ -207,4 +207,8 @@ LIBBPF_0.0.6 {
>   		bpf_program__size;
>   		btf__find_by_name_kind;
>   		libbpf_find_vmlinux_btf_id;
> +		bpf_map_delete_batch;
> +		bpf_map_lookup_and_delete_batch;
> +		bpf_map_lookup_batch;
> +		bpf_map_update_batch;

Please insert new API functions following alphabet ordering.

>   } LIBBPF_0.0.5;
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ