RE: [PATCH v2 bpf-next 1/9] bpf: add bpf_map_{value_size,update_value,map_copy_value} functions
From: John Fastabend
Date: Fri Nov 22 2019 - 11:36:55 EST
Brian Vazquez wrote:
> This commit moves reusable code from map_lookup_elem and map_update_elem
> to avoid code duplication in kernel/bpf/syscall.c.
>
> Signed-off-by: Brian Vazquez <brianvv@xxxxxxxxxx>
> ---
> kernel/bpf/syscall.c | 271 ++++++++++++++++++++++++-------------------
> 1 file changed, 151 insertions(+), 120 deletions(-)
>
Nice bit of cleanup.
Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>