summaryrefslogtreecommitdiff
path: root/samples/bpf/bpf_load.h
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2018-01-30 23:55:04 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-02-03 04:53:48 +0300
commitb259c2ffd9b4812aa42a1d502eabd8c62a32d063 (patch)
tree83671596b4c2f36d19f38f1312756022c037dbc5 /samples/bpf/bpf_load.h
parent6061a3d6720600c976b877c3ac1402b3ef0a8a55 (diff)
downloadlinux-b259c2ffd9b4812aa42a1d502eabd8c62a32d063.tar.xz
samples/bpf: use bpf_set_link_xdp_fd
Use bpf_set_link_xdp_fd instead of set_link_xdp_fd to remove some code duplication and benefit of netlink ext ack errors message. Signed-off-by: Eric Leblond <eric@regit.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/bpf_load.h')
-rw-r--r--samples/bpf/bpf_load.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/bpf_load.h b/samples/bpf/bpf_load.h
index 7d57a4248893..453c200b389b 100644
--- a/samples/bpf/bpf_load.h
+++ b/samples/bpf/bpf_load.h
@@ -61,5 +61,5 @@ struct ksym {
int load_kallsyms(void);
struct ksym *ksym_search(long key);
-int set_link_xdp_fd(int ifindex, int fd, __u32 flags);
+int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags);
#endif