samples/bpf: Move open_raw_sock to separate header
authorJoe Stringer <joe@ovn.org>
Fri, 9 Dec 2016 02:46:20 +0000 (18:46 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Dec 2016 15:00:40 +0000 (12:00 -0300)
commit9899694a7f67714216665b87318eb367e2c5c901
tree54f29b8abd381ca36208b9cc6fe8de308800f881
parent205c8ada314f78e6637342089e5b585a051d6cf5
samples/bpf: Move open_raw_sock to separate header

This function was declared in libbpf.c and was the only remaining
function in this library, but has nothing to do with BPF. Shift it out
into a new header, sock_example.h, and include it from the relevant
samples.

Signed-off-by: Joe Stringer <joe@ovn.org>
Cc: Alexei Starovoitov <ast@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/20161209024620.31660-8-joe@ovn.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
samples/bpf/Makefile
samples/bpf/fds_example.c
samples/bpf/libbpf.h
samples/bpf/sock_example.c
samples/bpf/sock_example.h [moved from samples/bpf/libbpf.c with 92% similarity]
samples/bpf/sockex1_user.c
samples/bpf/sockex2_user.c
samples/bpf/sockex3_user.c