tools/lib/bpf: expose bpf_program__set_type()
expose bpf_program__set_type() to set program type Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3084887378
commit
dd26b7f54a
@@ -1618,8 +1618,7 @@ int bpf_program__nth_fd(struct bpf_program *prog, int n)
|
||||
return fd;
|
||||
}
|
||||
|
||||
static void bpf_program__set_type(struct bpf_program *prog,
|
||||
enum bpf_prog_type type)
|
||||
void bpf_program__set_type(struct bpf_program *prog, enum bpf_prog_type type)
|
||||
{
|
||||
prog->type = type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user