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.11 [+2.11] # 2.11 [+0.00] ################################################################################ # 2.11 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.11 [+0.00] ################################################################################ # 2.37 [+0.26] name: vrf # 2.37 [+0.00] filename: (builtin) # 2.38 [+0.01] version: 1.1 # 2.38 [+0.00] alias: rtnl-link-vrf # 2.38 [+0.00] license: GPL # 2.38 [+0.00] file: drivers/net/vrf # 2.38 [+0.00] description: Device driver to instantiate VRF domains # 2.39 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.57 [+0.18] # 2.57 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.89 [+0.32] # 2.89 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.17 [+0.28] # 3.17 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.44 [+0.27] # 3.44 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.55 [+0.11] # 3.55 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.86 [+0.32] # 3.86 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.97 [+0.10] # 3.97 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.26 [+0.30] # 4.26 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.52 [+0.26] # 4.52 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.63 [+0.10] # 4.63 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.82 [+0.20] # 4.82 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.92 [+0.10] # 4.92 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.20 [+0.28] # 5.20 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.42 [+0.21] # 5.42 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.42 [+0.00] # 5.42 [+0.00] ################################################################################ # 5.42 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.42 [+0.00] ################################################################################ # 5.66 [+0.24] name: vrf # 5.67 [+0.00] filename: (builtin) # 5.68 [+0.01] version: 1.1 # 5.68 [+0.00] alias: rtnl-link-vrf # 5.68 [+0.00] license: GPL # 5.68 [+0.00] file: drivers/net/vrf # 5.68 [+0.00] description: Device driver to instantiate VRF domains # 5.68 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.98 [+0.30] # 5.98 [+0.00] TEST: testns-2UOffQ: net.vrf.strict_mode is available [ OK ] # 6.41 [+0.43] # 6.41 [+0.00] TEST: testns-2UOffQ: strict_mode=0 by default, 0 vrfs [ OK ] # 6.62 [+0.21] # 6.62 [+0.00] TEST: testns-2UOffQ: enable strict_mode (=1) [ OK ] # 6.91 [+0.29] # 6.91 [+0.00] TEST: testns-2UOffQ: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.17 [+0.27] # 7.18 [+0.00] TEST: testns-2UOffQ: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 8.01 [+0.83] # 8.01 [+0.00] TEST: testns-2UOffQ: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.53 [+0.51] # 8.53 [+0.00] TEST: testns-2UOffQ: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.80 [+0.27] # 8.80 [+0.00] TEST: testns-2UOffQ: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 9.00 [+0.21] # 9.01 [+0.00] TEST: testns-2UOffQ: disable strict_mode (=0) [ OK ] # 9.33 [+0.33] # 9.34 [+0.01] TEST: testns-2UOffQ: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.62 [+0.28] # 9.62 [+0.00] TEST: testns-2UOffQ: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.63 [+0.00] # 9.63 [+0.00] ################################################################################ # 9.63 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.63 [+0.00] ################################################################################ # 9.81 [+0.18] # 9.81 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.11 [+0.31] # 10.11 [+0.00] TEST: testns-2UOffQ: check strict_mode=0 [ OK ] # 10.30 [+0.19] # 10.30 [+0.00] TEST: testns-2UOffQ: remove vrf vrf101 [ OK ] # 10.48 [+0.18] # 10.48 [+0.00] TEST: testns-2UOffQ: remove vrf vrf102 [ OK ] # 10.58 [+0.09] # 10.58 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.78 [+0.20] # 10.78 [+0.00] TEST: testns-2UOffQ: enable strict_mode (=1) [ OK ] # 10.88 [+0.10] # 10.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.98 [+0.09] # 10.98 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.19 [+0.21] # 11.19 [+0.00] TEST: testns-2UOffQ: disable strict_mode (=0) [ OK ] # 11.37 [+0.19] # 11.37 [+0.00] TEST: testns-2UOffQ: disable strict_mode (=0) [ OK ] # 11.55 [+0.18] # 11.55 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.81 [+0.26] # 11.81 [+0.00] TEST: testns-2UOffQ: check strict_mode=0 [ OK ] # 12.54 [+0.73] # 12.54 [+0.00] Tests passed: 37 # 12.54 [+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__->