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.27 [+2.27] # 2.27 [+0.00] ################################################################################ # 2.28 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.28 [+0.00] ################################################################################ # 2.58 [+0.30] name: vrf # 2.58 [+0.00] filename: (builtin) # 5.68 [+3.10] 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.69 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.93 [+0.24] # 5.93 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.29 [+0.36] # 6.29 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.59 [+0.30] # 6.59 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.89 [+0.30] # 6.89 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.06 [+0.16] # 7.06 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.39 [+0.33] # 7.39 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.55 [+0.16] # 7.55 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.84 [+0.28] # 7.84 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.12 [+0.28] # 8.12 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.26 [+0.14] # 8.26 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.49 [+0.23] # 8.49 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.63 [+0.15] # 8.63 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.91 [+0.27] # 8.91 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.22 [+0.31] # 9.22 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.22 [+0.00] # 9.22 [+0.00] ################################################################################ # 9.22 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.22 [+0.00] ################################################################################ # 9.51 [+0.29] name: vrf # 9.51 [+0.00] filename: (builtin) # 12.31 [+2.80] version: 1.1 # 12.31 [+0.00] alias: rtnl-link-vrf # 12.31 [+0.00] license: GPL # 12.32 [+0.00] file: drivers/net/vrf # 12.32 [+0.00] description: Device driver to instantiate VRF domains # 12.32 [+0.00] author: Shrijeet Mukherjee, David Ahern # 12.72 [+0.40] # 12.72 [+0.00] TEST: testns-HbGMcW: net.vrf.strict_mode is available [ OK ] # 13.24 [+0.52] # 13.24 [+0.00] TEST: testns-HbGMcW: strict_mode=0 by default, 0 vrfs [ OK ] # 13.54 [+0.30] # 13.54 [+0.00] TEST: testns-HbGMcW: enable strict_mode (=1) [ OK ] # 13.84 [+0.31] # 13.84 [+0.00] TEST: testns-HbGMcW: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.15 [+0.31] # 14.15 [+0.00] TEST: testns-HbGMcW: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.55 [+0.40] # 14.55 [+0.00] TEST: testns-HbGMcW: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 14.93 [+0.38] # 14.93 [+0.00] TEST: testns-HbGMcW: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.22 [+0.29] # 15.22 [+0.00] TEST: testns-HbGMcW: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.50 [+0.28] # 15.50 [+0.00] TEST: testns-HbGMcW: disable strict_mode (=0) [ OK ] # 15.81 [+0.30] # 15.81 [+0.00] TEST: testns-HbGMcW: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.12 [+0.31] # 16.12 [+0.00] TEST: testns-HbGMcW: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.12 [+0.00] # 16.12 [+0.00] ################################################################################ # 16.13 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.13 [+0.00] ################################################################################ # 16.46 [+0.33] # 16.46 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 16.84 [+0.38] # 16.84 [+0.00] TEST: testns-HbGMcW: check strict_mode=0 [ OK ] # 17.11 [+0.27] # 17.11 [+0.00] TEST: testns-HbGMcW: remove vrf vrf101 [ OK ] # 17.32 [+0.21] # 17.32 [+0.00] TEST: testns-HbGMcW: remove vrf vrf102 [ OK ] # 17.52 [+0.20] # 17.52 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.81 [+0.28] # 17.81 [+0.00] TEST: testns-HbGMcW: enable strict_mode (=1) [ OK ] # 17.95 [+0.14] # 17.95 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.09 [+0.14] # 18.09 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.37 [+0.28] # 18.37 [+0.00] TEST: testns-HbGMcW: disable strict_mode (=0) [ OK ] # 18.66 [+0.28] # 18.66 [+0.00] TEST: testns-HbGMcW: disable strict_mode (=0) [ OK ] # 18.90 [+0.24] # 18.90 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.30 [+0.41] # 19.30 [+0.00] TEST: testns-HbGMcW: check strict_mode=0 [ OK ] # 20.25 [+0.94] # 20.25 [+0.00] Tests passed: 37 # 20.25 [+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__->