diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-08-18 18:36:05 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-18 18:38:25 -0700 |
commit | 7084566a236fbc98beb11430d8d67dd08b2ac151 (patch) | |
tree | aadfd16122367ca5ea11b4084d12007d8c47ad58 /tools/lib/bpf/bpf.c | |
parent | 029258d7b22894fabcecb1626e1b87d18a6823f4 (diff) | |
download | linux-7084566a236fbc98beb11430d8d67dd08b2ac151.tar.gz linux-7084566a236fbc98beb11430d8d67dd08b2ac151.tar.bz2 linux-7084566a236fbc98beb11430d8d67dd08b2ac151.zip |
tools/bpftool: Remove libbpf_internal.h usage in bpftool
Most netlink-related functions were unique to bpftool usage, so I moved them
into net.c. Few functions are still used by both bpftool and libbpf itself
internally, so I've copy-pasted them (libbpf_nl_get_link,
libbpf_netlink_open). It's a bit of duplication of code, but better separation
of libbpf as a library with public API and bpftool, relying on unexposed
functions in libbpf.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200819013607.3607269-3-andriin@fb.com
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions