samples: bpf: use libbpf where easy
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 28 Feb 2019 03:04:13 +0000 (19:04 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Feb 2019 23:53:45 +0000 (00:53 +0100)
commit1a9b268c90286cae99051353cb7dfb53ffd82676
tree13672d85bbaeeab4e52a7b0d47199f53f43cc1b7
parentf74a53d9a567f6bc6f6d8460e84c76bd2a45d016
samples: bpf: use libbpf where easy

Some samples don't really need the magic of bpf_load,
switch them to libbpf.

v2: - specify program types.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/Makefile
samples/bpf/fds_example.c
samples/bpf/sockex1_user.c
samples/bpf/sockex2_user.c