bpf: Refactor codes handling percpu map
authorMartin KaFai Lau <kafai@fb.com>
Fri, 11 Nov 2016 18:55:08 +0000 (10:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 16:50:20 +0000 (11:50 -0500)
commitfd91de7b3c69a7f108b92521e1115df3e058af55
treeada0b67da6398ced8e1092eb9d47cc7671a10660
parent961578b63474d13ad0e2f615fcc2901c5197dda6
bpf: Refactor codes handling percpu map

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 <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/hashtab.c