]> git.baikalelectronics.ru Git - kernel.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)
commit14c4fc24f43a44debb02655f25efc1efe24ad8c0
treefdac07b4ce3e85642ce4006471a38429b1b77600
parenta7e7c544bd5d639d5da21c9fd7e2c45995a66511
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