commit | aa79781b65b9cf79807ade78f2703f5e9402c336 | [log] [tgz] |
---|---|---|
author | Daniel Borkmann <daniel@iogearbox.net> | Thu Oct 29 14:58:06 2015 +0100 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 02 22:48:39 2015 -0500 |
tree | 7b2eaa26b26f7c59283b87b6c44a5855dd249273 | |
parent | 1d6119baf0610f813eb9d9580eb4fd16de5b4ceb [diff] |
bpf: abstract anon_inode_getfd invocations Since we're going to use anon_inode_getfd() invocations in more than just the current places, make a helper function for both, so that we only need to pass a map/prog pointer to the helper itself in order to get a fd. The new helpers are called bpf_map_new_fd() and bpf_prog_new_fd(). Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>