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.57 [+2.57] # 2.57 [+0.00] ################################################################################ # 2.57 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.57 [+0.00] ################################################################################ # 2.91 [+0.34] name: vrf # 2.92 [+0.00] filename: (builtin) # 6.15 [+3.24] version: 1.1 # 6.15 [+0.00] alias: rtnl-link-vrf # 6.16 [+0.00] license: GPL # 6.16 [+0.00] file: drivers/net/vrf # 6.16 [+0.00] description: Device driver to instantiate VRF domains # 6.16 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.44 [+0.28] # 6.44 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.87 [+0.42] # 6.87 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.19 [+0.32] # 7.19 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.49 [+0.30] # 7.49 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.67 [+0.18] # 7.67 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.04 [+0.37] # 8.04 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.19 [+0.15] # 8.19 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.49 [+0.30] # 8.49 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.78 [+0.29] # 8.78 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.93 [+0.15] # 8.93 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.15 [+0.22] # 9.15 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.30 [+0.15] # 9.30 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.60 [+0.30] # 9.60 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.92 [+0.31] # 9.92 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.92 [+0.00] # 9.92 [+0.00] ################################################################################ # 9.92 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.92 [+0.00] ################################################################################ # 10.20 [+0.28] name: vrf # 10.21 [+0.00] filename: (builtin) # 13.42 [+3.21] version: 1.1 # 13.42 [+0.00] alias: rtnl-link-vrf # 13.42 [+0.00] license: GPL # 13.42 [+0.00] file: drivers/net/vrf # 13.42 [+0.00] description: Device driver to instantiate VRF domains # 13.42 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.84 [+0.41] # 13.84 [+0.00] TEST: testns-R1qg4J: net.vrf.strict_mode is available [ OK ] # 14.40 [+0.57] # 14.40 [+0.00] TEST: testns-R1qg4J: strict_mode=0 by default, 0 vrfs [ OK ] # 14.71 [+0.31] # 14.71 [+0.00] TEST: testns-R1qg4J: enable strict_mode (=1) [ OK ] # 15.01 [+0.30] # 15.01 [+0.00] TEST: testns-R1qg4J: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.33 [+0.32] # 15.33 [+0.00] TEST: testns-R1qg4J: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.70 [+0.37] # 15.70 [+0.00] TEST: testns-R1qg4J: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.06 [+0.36] # 16.06 [+0.00] TEST: testns-R1qg4J: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.39 [+0.33] # 16.39 [+0.00] TEST: testns-R1qg4J: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.70 [+0.31] # 16.70 [+0.00] TEST: testns-R1qg4J: disable strict_mode (=0) [ OK ] # 17.02 [+0.32] # 17.02 [+0.00] TEST: testns-R1qg4J: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.34 [+0.31] # 17.34 [+0.00] TEST: testns-R1qg4J: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.34 [+0.00] # 17.34 [+0.00] ################################################################################ # 17.34 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.34 [+0.00] ################################################################################ # 17.60 [+0.25] # 17.60 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.02 [+0.42] # 18.02 [+0.00] TEST: testns-R1qg4J: check strict_mode=0 [ OK ] # 18.24 [+0.22] # 18.24 [+0.00] TEST: testns-R1qg4J: remove vrf vrf101 [ OK ] # 18.46 [+0.21] # 18.46 [+0.00] TEST: testns-R1qg4J: remove vrf vrf102 [ OK ] # 18.63 [+0.17] # 18.63 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.94 [+0.31] # 18.94 [+0.00] TEST: testns-R1qg4J: enable strict_mode (=1) [ OK ] # 19.10 [+0.17] # 19.10 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.26 [+0.16] # 19.26 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.59 [+0.33] # 19.59 [+0.00] TEST: testns-R1qg4J: disable strict_mode (=0) [ OK ] # 19.90 [+0.31] # 19.90 [+0.00] TEST: testns-R1qg4J: disable strict_mode (=0) [ OK ] # 20.15 [+0.25] # 20.15 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.56 [+0.41] # 20.56 [+0.00] TEST: testns-R1qg4J: check strict_mode=0 [ OK ] # 21.55 [+0.99] # 21.55 [+0.00] Tests passed: 37 # 21.55 [+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__->