Re: [PATCH v2 net-next 3/6] bpf: Refactor codes handling percpu map

2016-11-14 Thread Alexei Starovoitov
On Fri, Nov 11, 2016 at 10:55:08AM -0800, Martin KaFai Lau wrote: > Refactor the codes that populate the value > of a htab_elem in a BPF_MAP_TYPE_PERCPU_HASH > typed bpf_map. > > Signed-off-by: Martin KaFai Lau Acked-by: Alexei Starovoitov

[PATCH v2 net-next 3/6] bpf: Refactor codes handling percpu map

2016-11-11 Thread Martin KaFai Lau
Refactor the codes that populate the value of a htab_elem in a BPF_MAP_TYPE_PERCPU_HASH typed bpf_map. Signed-off-by: Martin KaFai Lau --- kernel/bpf/hashtab.c | 47 +-- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/kernel/bpf/hashtab