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.44 [+2.44] # 2.44 [+0.00] ################################################################################ # 2.45 [+0.01] TEST SECTION: VRF strict_mode test on init network namespace # 2.45 [+0.00] ################################################################################ # 2.75 [+0.30] name: vrf # 2.75 [+0.00] filename: (builtin) # 2.76 [+0.01] version: 1.1 # 2.76 [+0.00] alias: rtnl-link-vrf # 2.76 [+0.00] license: GPL # 2.76 [+0.00] file: drivers/net/vrf # 2.77 [+0.00] description: Device driver to instantiate VRF domains # 2.77 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.96 [+0.19] # 2.96 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.31 [+0.35] # 3.31 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.64 [+0.32] # 3.64 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.90 [+0.27] # 3.90 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 4.01 [+0.11] # 4.01 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.40 [+0.39] # 4.40 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.51 [+0.11] # 4.51 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.83 [+0.32] # 4.83 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.09 [+0.26] # 5.09 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 5.19 [+0.10] # 5.19 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.39 [+0.20] # 5.39 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 5.49 [+0.10] # 5.49 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.82 [+0.32] # 5.82 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 6.06 [+0.24] # 6.06 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 6.06 [+0.00] # 6.06 [+0.00] ################################################################################ # 6.06 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 6.07 [+0.00] ################################################################################ # 6.33 [+0.27] name: vrf # 6.34 [+0.00] filename: (builtin) # 6.35 [+0.01] version: 1.1 # 6.35 [+0.00] alias: rtnl-link-vrf # 6.35 [+0.00] license: GPL # 6.35 [+0.00] file: drivers/net/vrf # 6.35 [+0.00] description: Device driver to instantiate VRF domains # 6.35 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.64 [+0.29] # 6.64 [+0.00] TEST: testns-aXR2kZ: net.vrf.strict_mode is available [ OK ] # 7.08 [+0.44] # 7.08 [+0.00] TEST: testns-aXR2kZ: strict_mode=0 by default, 0 vrfs [ OK ] # 7.29 [+0.21] # 7.30 [+0.00] TEST: testns-aXR2kZ: enable strict_mode (=1) [ OK ] # 7.59 [+0.29] # 7.59 [+0.00] TEST: testns-aXR2kZ: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.84 [+0.26] # 7.84 [+0.00] TEST: testns-aXR2kZ: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 8.24 [+0.39] # 8.24 [+0.00] TEST: testns-aXR2kZ: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.59 [+0.35] # 8.59 [+0.00] TEST: testns-aXR2kZ: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.88 [+0.29] # 8.88 [+0.00] TEST: testns-aXR2kZ: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 9.09 [+0.21] # 9.09 [+0.00] TEST: testns-aXR2kZ: disable strict_mode (=0) [ OK ] # 9.40 [+0.31] # 9.41 [+0.00] TEST: testns-aXR2kZ: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.73 [+0.33] # 9.73 [+0.00] TEST: testns-aXR2kZ: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.74 [+0.00] # 9.74 [+0.00] ################################################################################ # 9.74 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.74 [+0.00] ################################################################################ # 9.94 [+0.20] # 9.94 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.23 [+0.30] # 10.23 [+0.00] TEST: testns-aXR2kZ: check strict_mode=0 [ OK ] # 10.42 [+0.19] # 10.42 [+0.00] TEST: testns-aXR2kZ: remove vrf vrf101 [ OK ] # 10.59 [+0.18] # 10.59 [+0.00] TEST: testns-aXR2kZ: remove vrf vrf102 [ OK ] # 10.69 [+0.10] # 10.69 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.91 [+0.21] # 10.91 [+0.00] TEST: testns-aXR2kZ: enable strict_mode (=1) [ OK ] # 11.00 [+0.09] # 11.00 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.10 [+0.10] # 11.10 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.30 [+0.20] # 11.30 [+0.00] TEST: testns-aXR2kZ: disable strict_mode (=0) [ OK ] # 11.52 [+0.22] # 11.52 [+0.00] TEST: testns-aXR2kZ: disable strict_mode (=0) [ OK ] # 11.71 [+0.19] # 11.71 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 12.02 [+0.31] # 12.02 [+0.00] TEST: testns-aXR2kZ: check strict_mode=0 [ OK ] # 12.81 [+0.78] # 12.81 [+0.00] Tests passed: 37 # 12.81 [+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__->