tools lib bpf: Add set/is helpers for all prog types
authorJoe Stringer <joe@ovn.org>
Mon, 23 Jan 2017 01:11:24 +0000 (17:11 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Jan 2017 14:42:58 +0000 (11:42 -0300)
commit7803ba73099867d1f6ca866857277d92e0da4080
tree9e1676a3a66c645ab52d9d8e388314b8494f9443
parented7940731ac89616b8a516c560a76dca44a152a8
tools lib bpf: Add set/is helpers for all prog types

These bpf_prog_types were exposed in the uapi but there were no
corresponding functions to set these types for programs in libbpf.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Wang Nan <wangnan0@huawei.com>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: netdev@vger.kernel.org
Link: http://lkml.kernel.org/r/20170123011128.26534-4-joe@ovn.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h