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 # 1.70 [+1.70] # 1.70 [+0.00] ################################################################################ # 1.71 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.71 [+0.00] ################################################################################ # 1.98 [+0.28] name: vrf # 1.99 [+0.00] filename: (builtin) # 2.00 [+0.01] version: 1.1 # 2.00 [+0.00] alias: rtnl-link-vrf # 2.00 [+0.00] license: GPL # 2.00 [+0.00] file: drivers/net/vrf # 2.00 [+0.00] description: Device driver to instantiate VRF domains # 2.00 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.18 [+0.18] # 2.18 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.48 [+0.30] # 2.48 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.74 [+0.26] # 2.74 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.98 [+0.24] # 2.98 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.08 [+0.10] # 3.08 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.44 [+0.36] # 3.44 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.54 [+0.10] # 3.54 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 3.84 [+0.30] # 3.84 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.06 [+0.21] # 4.06 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.15 [+0.09] # 4.15 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.35 [+0.20] # 4.35 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.44 [+0.09] # 4.44 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.73 [+0.29] # 4.73 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 4.97 [+0.25] # 4.97 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 4.98 [+0.00] # 4.98 [+0.00] ################################################################################ # 4.98 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 4.98 [+0.00] ################################################################################ # 5.23 [+0.25] name: vrf # 5.23 [+0.00] filename: (builtin) # 5.24 [+0.01] version: 1.1 # 5.24 [+0.00] alias: rtnl-link-vrf # 5.25 [+0.00] license: GPL # 5.25 [+0.00] file: drivers/net/vrf # 5.25 [+0.00] description: Device driver to instantiate VRF domains # 5.25 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.53 [+0.28] # 5.53 [+0.00] TEST: testns-V36EzO: net.vrf.strict_mode is available [ OK ] # 5.92 [+0.39] # 5.92 [+0.00] TEST: testns-V36EzO: strict_mode=0 by default, 0 vrfs [ OK ] # 6.10 [+0.17] # 6.10 [+0.00] TEST: testns-V36EzO: enable strict_mode (=1) [ OK ] # 6.38 [+0.28] # 6.38 [+0.00] TEST: testns-V36EzO: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.60 [+0.23] # 6.60 [+0.00] TEST: testns-V36EzO: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 6.91 [+0.31] # 6.92 [+0.00] TEST: testns-V36EzO: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.26 [+0.35] # 7.26 [+0.00] TEST: testns-V36EzO: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 7.51 [+0.25] # 7.51 [+0.00] TEST: testns-V36EzO: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 7.71 [+0.20] # 7.71 [+0.00] TEST: testns-V36EzO: disable strict_mode (=0) [ OK ] # 7.97 [+0.26] # 7.97 [+0.00] TEST: testns-V36EzO: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.24 [+0.27] # 8.24 [+0.00] TEST: testns-V36EzO: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 8.25 [+0.00] # 8.25 [+0.00] ################################################################################ # 8.25 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 8.25 [+0.00] ################################################################################ # 8.41 [+0.16] # 8.41 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 8.69 [+0.27] # 8.69 [+0.00] TEST: testns-V36EzO: check strict_mode=0 [ OK ] # 8.86 [+0.18] # 8.86 [+0.00] TEST: testns-V36EzO: remove vrf vrf101 [ OK ] # 9.04 [+0.17] # 9.04 [+0.00] TEST: testns-V36EzO: remove vrf vrf102 [ OK ] # 9.14 [+0.10] # 9.14 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.32 [+0.18] # 9.32 [+0.00] TEST: testns-V36EzO: enable strict_mode (=1) [ OK ] # 9.43 [+0.10] # 9.43 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.52 [+0.09] # 9.52 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.71 [+0.19] # 9.71 [+0.00] TEST: testns-V36EzO: disable strict_mode (=0) [ OK ] # 9.90 [+0.19] # 9.90 [+0.00] TEST: testns-V36EzO: disable strict_mode (=0) [ OK ] # 10.08 [+0.18] # 10.08 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.34 [+0.27] # 10.35 [+0.00] TEST: testns-V36EzO: check strict_mode=0 [ OK ] # 11.14 [+0.79] # 11.14 [+0.00] Tests passed: 37 # 11.14 [+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__->