]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add bpf_prog_add api for bulk prog refcnt
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 19 Jul 2016 19:16:46 +0000 (12:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 04:46:31 +0000 (21:46 -0700)
commit7bb60e10d9d7c3d0cdf1b3c68f4715c6d65bf3bd
tree058ce3d24709783658e7454de289500a1f8d7722
parent3ae93fc9be5063f8d6619e23a2dfdf84006aa7a5
bpf: add bpf_prog_add api for bulk prog refcnt

A subsystem may need to store many copies of a bpf program, each
deserving its own reference. Rather than requiring the caller to loop
one by one (with possible mid-loop failure), add a bulk bpf_prog_add
api.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
kernel/bpf/syscall.c