make -C tools/testing/selftests TARGETS="net" TEST_PROGS=vrf_strict_mode_ttest.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 2.31 [+2.31] # 2.31 [+0.00] ################################################################################ # 2.31 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.31 [+0.00] ################################################################################ # 2.61 [+0.30] name: vrf # 2.61 [+0.00] filename: (builtin) # 2.63 [+0.01] version: 1.1 # 2.63 [+0.00] alias: rtnl-link-vrf # 2.63 [+0.00] license: GPL # 2.63 [+0.00] file: drivers/net/vrf # 2.63 [+0.00] description: Device driver to instantiate VRF domains # 2.63 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.81 [+0.18] # 2.81 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.14 [+0.32] # 3.14 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.47 [+0.34] # 3.47 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.77 [+0.30] # 3.77 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.88 [+0.11] # 3.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.24 [+0.37] # 4.24 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.38 [+0.14] # 4.38 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.69 [+0.31] # 4.69 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.96 [+0.27] # 4.96 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 5.08 [+0.12] # 5.08 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.29 [+0.21] # 5.29 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 5.42 [+0.13] # 5.42 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.76 [+0.34] # 5.76 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.99 [+0.23] # 5.99 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.99 [+0.00] # 5.99 [+0.00] ################################################################################ # 6.00 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 6.00 [+0.00] ################################################################################ # 6.31 [+0.32] name: vrf # 6.31 [+0.00] filename: (builtin) # 6.33 [+0.01] version: 1.1 # 6.33 [+0.00] alias: rtnl-link-vrf # 6.33 [+0.00] license: GPL # 6.33 [+0.00] file: drivers/net/vrf # 6.33 [+0.00] description: Device driver to instantiate VRF domains # 6.33 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.63 [+0.30] # 6.63 [+0.00] TEST: testns-1BR6LK: net.vrf.strict_mode is available [ OK ] # 7.08 [+0.45] # 7.08 [+0.00] TEST: testns-1BR6LK: strict_mode=0 by default, 0 vrfs [ OK ] # 7.28 [+0.20] # 7.28 [+0.00] TEST: testns-1BR6LK: enable strict_mode (=1) [ OK ] # 7.61 [+0.33] # 7.61 [+0.00] TEST: testns-1BR6LK: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.87 [+0.25] # 7.87 [+0.00] TEST: testns-1BR6LK: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 8.25 [+0.38] # 8.25 [+0.00] TEST: testns-1BR6LK: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.64 [+0.39] # 8.64 [+0.00] TEST: testns-1BR6LK: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.95 [+0.31] # 8.95 [+0.00] TEST: testns-1BR6LK: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 9.18 [+0.23] # 9.18 [+0.00] TEST: testns-1BR6LK: disable strict_mode (=0) [ OK ] # 9.47 [+0.29] # 9.47 [+0.00] TEST: testns-1BR6LK: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.77 [+0.30] # 9.77 [+0.00] TEST: testns-1BR6LK: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.77 [+0.00] # 9.77 [+0.00] ################################################################################ # 9.77 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.78 [+0.00] ################################################################################ # 9.97 [+0.19] # 9.97 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.27 [+0.31] # 10.27 [+0.00] TEST: testns-1BR6LK: check strict_mode=0 [ OK ] # 10.46 [+0.19] # 10.46 [+0.00] TEST: testns-1BR6LK: remove vrf vrf101 [ OK ] # 10.65 [+0.19] # 10.66 [+0.00] TEST: testns-1BR6LK: remove vrf vrf102 [ OK ] # 10.77 [+0.11] # 10.77 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.98 [+0.21] # 10.98 [+0.00] TEST: testns-1BR6LK: enable strict_mode (=1) [ OK ] # 11.10 [+0.11] # 11.10 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.21 [+0.12] # 11.21 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.42 [+0.20] # 11.42 [+0.00] TEST: testns-1BR6LK: disable strict_mode (=0) [ OK ] # 11.64 [+0.22] # 11.64 [+0.00] TEST: testns-1BR6LK: disable strict_mode (=0) [ OK ] # 11.83 [+0.19] # 11.83 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 12.13 [+0.30] # 12.13 [+0.00] TEST: testns-1BR6LK: check strict_mode=0 [ OK ] # 12.92 [+0.78] # 12.92 [+0.00] Tests passed: 37 # 12.92 [+0.00] Tests failed: 0 ok 1 selftests: net: vrf_strict_mode_test.sh make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->