diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2020-03-25 18:23:28 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-28 14:24:41 -0700 |
commit | bd5ca3ef93cd8fb7e913f15eeb78e67a0d802274 (patch) | |
tree | 20b66080e37c4e8fb4686963675ef38f6ef9c10d /tools/testing/selftests/bpf/prog_tests/xdp_attach.c | |
parent | 50a3e678b58ae9535f9e536f2889649b624943c3 (diff) | |
download | linux-bd5ca3ef93cd8fb7e913f15eeb78e67a0d802274.tar.gz linux-bd5ca3ef93cd8fb7e913f15eeb78e67a0d802274.tar.bz2 linux-bd5ca3ef93cd8fb7e913f15eeb78e67a0d802274.zip |
libbpf: Add function to set link XDP fd while specifying old program
This adds a new function to set the XDP fd while specifying the FD of the
program to replace, using the newly added IFLA_XDP_EXPECTED_FD netlink
parameter. The new function uses the opts struct mechanism to be extendable
in the future.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/158515700857.92963.7052131201257841700.stgit@toke.dk
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/xdp_attach.c')
0 files changed, 0 insertions, 0 deletions