selftests/bpf: Add tests for attaching XDP programs
authorToke Høiland-Jørgensen <toke@redhat.com>
Wed, 25 Mar 2020 17:23:29 +0000 (18:23 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 28 Mar 2020 21:24:41 +0000 (14:24 -0700)
commit87854a0b57b34c52e172109b1d3949fc639b6474
treef903dfcf56b495dbd39b348872a191e3a8812c83
parentbd5ca3ef93cd8fb7e913f15eeb78e67a0d802274
selftests/bpf: Add tests for attaching XDP programs

This adds tests for the various replacement operations using
IFLA_XDP_EXPECTED_FD.

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/158515700967.92963.15098921624731968356.stgit@toke.dk
tools/testing/selftests/bpf/prog_tests/xdp_attach.c [new file with mode: 0644]