Re: [PATCH bpf-next 02/13] bpf: refactor map_update_elem()

2019-08-29 Thread Song Liu
> On Aug 28, 2019, at 11:45 PM, Yonghong Song wrote: > > Refactor function map_update_elem() by creating a > helper function bpf_map_update_elem() which will be > used later by batched map update operation. > > Also reuse function bpf_map_value_size() > in map_update_elem(). > > Signed-off-b

[PATCH bpf-next 02/13] bpf: refactor map_update_elem()

2019-08-28 Thread Yonghong Song
Refactor function map_update_elem() by creating a helper function bpf_map_update_elem() which will be used later by batched map update operation. Also reuse function bpf_map_value_size() in map_update_elem(). Signed-off-by: Yonghong Song --- kernel/bpf/syscall.c | 113 ++