commit | 59d3656d5bf504f771fc44fdbc7a9a8590795f22 | [log] [tgz] |
---|---|---|
author | Brenden Blanco <bblanco@plumgrid.com> | Tue Jul 19 12:16:46 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 19 21:46:31 2016 -0700 |
tree | 058ce3d24709783658e7454de289500a1f8d7722 | |
parent | ddbcb79493d96bd0d98987f4f6602f0f96665518 [diff] |
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>