diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2018-02-02 17:53:49 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2018-02-02 17:53:49 -0800 |
| commit | 09c0656dfabd0b15e410eca67dc45cb14ec9c13a (patch) | |
| tree | 83671596b4c2f36d19f38f1312756022c037dbc5 /samples/bpf/xdp1_user.c | |
| parent | 0911287ce32b14fbc8aab0083151d9b54254091c (diff) | |
| parent | b259c2ffd9b4812aa42a1d502eabd8c62a32d063 (diff) | |
Merge branch 'libbpf-xdp-support'
Eric Leblond says:
====================
Here is an updated v8 version:
- add if_link.h in uapi and remove the definition
- fix a commit message
- remove uapi from a include
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/bpf/xdp1_user.c')
| -rw-r--r-- | samples/bpf/xdp1_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/bpf/xdp1_user.c b/samples/bpf/xdp1_user.c index fdaefe91801d..b901ee2b3336 100644 --- a/samples/bpf/xdp1_user.c +++ b/samples/bpf/xdp1_user.c @@ -25,7 +25,7 @@ static __u32 xdp_flags; static void int_exit(int sig) { - set_link_xdp_fd(ifindex, -1, xdp_flags); + bpf_set_link_xdp_fd(ifindex, -1, xdp_flags); exit(0); } @@ -116,7 +116,7 @@ int main(int argc, char **argv) signal(SIGINT, int_exit); signal(SIGTERM, int_exit); - if (set_link_xdp_fd(ifindex, prog_fd[0], xdp_flags) < 0) { + if (bpf_set_link_xdp_fd(ifindex, prog_fd[0], xdp_flags) < 0) { printf("link set xdp fd failed\n"); return 1; } |
