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.74 [+2.74] # 2.74 [+0.00] ################################################################################ # 2.74 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.74 [+0.00] ################################################################################ # 3.09 [+0.34] name: vrf # 3.09 [+0.00] filename: (builtin) # 6.45 [+3.36] version: 1.1 # 6.45 [+0.00] alias: rtnl-link-vrf # 6.45 [+0.00] license: GPL # 6.45 [+0.00] file: drivers/net/vrf # 6.45 [+0.00] description: Device driver to instantiate VRF domains # 6.46 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.75 [+0.29] # 6.75 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.18 [+0.44] # 7.18 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.54 [+0.35] # 7.54 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.87 [+0.33] # 7.87 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.03 [+0.16] # 8.03 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.40 [+0.37] # 8.40 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.57 [+0.17] # 8.57 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.90 [+0.33] # 8.90 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.22 [+0.33] # 9.22 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.37 [+0.15] # 9.37 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.63 [+0.26] # 9.63 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.79 [+0.16] # 9.79 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.16 [+0.37] # 10.16 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.50 [+0.34] # 10.50 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.50 [+0.00] # 10.50 [+0.00] ################################################################################ # 10.51 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.51 [+0.00] ################################################################################ # 10.84 [+0.33] name: vrf # 10.84 [+0.00] filename: (builtin) # 14.22 [+3.38] version: 1.1 # 14.22 [+0.00] alias: rtnl-link-vrf # 14.22 [+0.00] license: GPL # 14.22 [+0.00] file: drivers/net/vrf # 14.22 [+0.00] description: Device driver to instantiate VRF domains # 14.22 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.67 [+0.45] # 14.67 [+0.00] TEST: testns-2ts8a7: net.vrf.strict_mode is available [ OK ] # 15.27 [+0.60] # 15.27 [+0.00] TEST: testns-2ts8a7: strict_mode=0 by default, 0 vrfs [ OK ] # 15.59 [+0.31] # 15.59 [+0.00] TEST: testns-2ts8a7: enable strict_mode (=1) [ OK ] # 15.92 [+0.33] # 15.92 [+0.00] TEST: testns-2ts8a7: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.25 [+0.33] # 16.25 [+0.00] TEST: testns-2ts8a7: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.64 [+0.39] # 16.64 [+0.00] TEST: testns-2ts8a7: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.03 [+0.39] # 17.03 [+0.00] TEST: testns-2ts8a7: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.37 [+0.34] # 17.37 [+0.00] TEST: testns-2ts8a7: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.68 [+0.31] # 17.68 [+0.00] TEST: testns-2ts8a7: disable strict_mode (=0) [ OK ] # 18.01 [+0.33] # 18.01 [+0.00] TEST: testns-2ts8a7: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.37 [+0.36] # 18.37 [+0.00] TEST: testns-2ts8a7: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.37 [+0.00] # 18.37 [+0.00] ################################################################################ # 18.38 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.38 [+0.00] ################################################################################ # 18.62 [+0.24] # 18.62 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.05 [+0.43] # 19.05 [+0.00] TEST: testns-2ts8a7: check strict_mode=0 [ OK ] # 19.29 [+0.24] # 19.29 [+0.00] TEST: testns-2ts8a7: remove vrf vrf101 [ OK ] # 19.50 [+0.21] # 19.50 [+0.00] TEST: testns-2ts8a7: remove vrf vrf102 [ OK ] # 19.66 [+0.16] # 19.66 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.97 [+0.31] # 19.97 [+0.00] TEST: testns-2ts8a7: enable strict_mode (=1) [ OK ] # 20.14 [+0.17] # 20.14 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.30 [+0.16] # 20.30 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.62 [+0.33] # 20.62 [+0.00] TEST: testns-2ts8a7: disable strict_mode (=0) [ OK ] # 20.96 [+0.33] # 20.96 [+0.00] TEST: testns-2ts8a7: disable strict_mode (=0) [ OK ] # 21.22 [+0.26] # 21.22 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.61 [+0.39] # 21.61 [+0.00] TEST: testns-2ts8a7: check strict_mode=0 [ OK ] # 22.62 [+1.01] # 22.62 [+0.00] Tests passed: 37 # 22.62 [+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__->