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' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 2.39 [+2.39] # 2.39 [+0.00] ################################################################################ # 2.39 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.40 [+0.00] ################################################################################ # 2.73 [+0.34] name: vrf # 2.73 [+0.00] filename: (builtin) # 5.93 [+3.19] version: 1.1 # 5.93 [+0.00] alias: rtnl-link-vrf # 5.93 [+0.00] license: GPL # 5.93 [+0.00] file: drivers/net/vrf # 5.93 [+0.00] description: Device driver to instantiate VRF domains # 5.93 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.21 [+0.28] # 6.21 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.59 [+0.38] # 6.59 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.89 [+0.30] # 6.89 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.18 [+0.29] # 7.18 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.34 [+0.16] # 7.34 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.70 [+0.36] # 7.70 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.85 [+0.15] # 7.85 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.15 [+0.30] # 8.15 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.46 [+0.31] # 8.46 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.61 [+0.15] # 8.61 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.84 [+0.23] # 8.84 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.97 [+0.14] # 8.97 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.27 [+0.30] # 9.27 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.58 [+0.31] # 9.58 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.58 [+0.00] # 9.58 [+0.00] ################################################################################ # 9.59 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.59 [+0.00] ################################################################################ # 9.90 [+0.31] name: vrf # 9.90 [+0.00] filename: (builtin) # 13.13 [+3.23] version: 1.1 # 13.13 [+0.00] alias: rtnl-link-vrf # 13.13 [+0.00] license: GPL # 13.13 [+0.00] file: drivers/net/vrf # 13.13 [+0.00] description: Device driver to instantiate VRF domains # 13.13 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.56 [+0.42] # 13.56 [+0.00] TEST: testns-UQbvCG: net.vrf.strict_mode is available [ OK ] # 14.11 [+0.55] # 14.11 [+0.00] TEST: testns-UQbvCG: strict_mode=0 by default, 0 vrfs [ OK ] # 14.40 [+0.29] # 14.40 [+0.00] TEST: testns-UQbvCG: enable strict_mode (=1) [ OK ] # 14.71 [+0.31] # 14.71 [+0.00] TEST: testns-UQbvCG: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.03 [+0.32] # 15.03 [+0.00] TEST: testns-UQbvCG: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.39 [+0.36] # 15.39 [+0.00] TEST: testns-UQbvCG: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.73 [+0.35] # 15.73 [+0.00] TEST: testns-UQbvCG: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.05 [+0.32] # 16.05 [+0.00] TEST: testns-UQbvCG: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.35 [+0.30] # 16.35 [+0.00] TEST: testns-UQbvCG: disable strict_mode (=0) [ OK ] # 16.66 [+0.30] # 16.66 [+0.00] TEST: testns-UQbvCG: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.95 [+0.30] # 16.95 [+0.00] TEST: testns-UQbvCG: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.96 [+0.00] # 16.96 [+0.00] ################################################################################ # 16.96 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.96 [+0.00] ################################################################################ # 17.20 [+0.23] # 17.20 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.59 [+0.39] # 17.59 [+0.00] TEST: testns-UQbvCG: check strict_mode=0 [ OK ] # 17.80 [+0.21] # 17.80 [+0.00] TEST: testns-UQbvCG: remove vrf vrf101 [ OK ] # 17.99 [+0.19] # 17.99 [+0.00] TEST: testns-UQbvCG: remove vrf vrf102 [ OK ] # 18.14 [+0.14] # 18.14 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.42 [+0.29] # 18.42 [+0.00] TEST: testns-UQbvCG: enable strict_mode (=1) [ OK ] # 18.57 [+0.14] # 18.57 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.71 [+0.14] # 18.71 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.99 [+0.28] # 18.99 [+0.00] TEST: testns-UQbvCG: disable strict_mode (=0) [ OK ] # 19.27 [+0.28] # 19.27 [+0.00] TEST: testns-UQbvCG: disable strict_mode (=0) [ OK ] # 19.52 [+0.24] # 19.52 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.93 [+0.41] # 19.93 [+0.00] TEST: testns-UQbvCG: check strict_mode=0 [ OK ] # 20.93 [+1.00] # 20.93 [+0.00] Tests passed: 37 # 20.93 [+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__->