]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Test XDP bonding nest and unwind
authorJussi Maki <joamaki@gmail.com>
Mon, 6 Sep 2021 08:56:38 +0000 (10:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Sep 2021 12:12:09 +0000 (13:12 +0100)
commit4a9c93dc47de335880ce7347e6aa006d8f33265a
treefdac07b4ce3e85642ce4006471a38429b1b77600
parent6d5f1ef838683efba01bacb7854f6516fbcbae17
selftests/bpf: Test XDP bonding nest and unwind

Modify the test to check that enslaving a bond slave with a XDP program
is now allowed.

Extend attach test to exercise the program unwinding in bond_xdp_set and
add a new test for loading XDP program on doubly nested bond device to
verify that static key incr/decr is correct.

Signed-off-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c