tools lib bpf: Define prog_type fns with macro
authorJoe Stringer <joe@ovn.org>
Mon, 23 Jan 2017 01:11:23 +0000 (17:11 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Jan 2017 14:42:57 +0000 (11:42 -0300)
commited7940731ac89616b8a516c560a76dca44a152a8
treea1aa49d9c02b3e495760f427f55ee8fe57991ed5
parent94e5adece8b37a23d99fb1f8a5de94b23194f387
tools lib bpf: Define prog_type fns with macro

Turning this into a macro allows future prog types to be added with a
single line per type.

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-3-joe@ovn.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/bpf/libbpf.c