aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/netlink.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2023-02-14 23:12:15 +0000
committerAndrii Nakryiko <[email protected]>2023-02-16 23:32:45 +0000
commit629dfc660cae86a6a48d19f5295226d03caae673 (patch)
treefe9164e46c5e1566041744de19ff5f7603259363 /tools/lib/bpf/netlink.c
parentlibbpf: Introduce bpf_{btf,link,map,prog}_get_info_by_fd() (diff)
downloadkernel-629dfc660cae86a6a48d19f5295226d03caae673.tar.gz
kernel-629dfc660cae86a6a48d19f5295226d03caae673.zip
libbpf: Use bpf_{btf,link,map,prog}_get_info_by_fd()
Use the new type-safe wrappers around bpf_obj_get_info_by_fd(). Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/netlink.c')
-rw-r--r--tools/lib/bpf/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/netlink.c b/tools/lib/bpf/netlink.c
index cb082a04ffa8..1653e7a8b0a1 100644
--- a/tools/lib/bpf/netlink.c
+++ b/tools/lib/bpf/netlink.c
@@ -689,7 +689,7 @@ static int tc_add_fd_and_name(struct libbpf_nla_req *req, int fd)
int len, ret;
memset(&info, 0, info_len);
- ret = bpf_obj_get_info_by_fd(fd, &info, &info_len);
+ ret = bpf_prog_get_info_by_fd(fd, &info, &info_len);
if (ret < 0)
return ret;