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.92 [+2.92] # 2.92 [+0.00] ################################################################################ # 2.93 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.93 [+0.00] ################################################################################ # 3.30 [+0.37] name: vrf # 3.30 [+0.00] filename: (builtin) # 6.81 [+3.51] version: 1.1 # 6.81 [+0.00] alias: rtnl-link-vrf # 6.81 [+0.00] license: GPL # 6.81 [+0.00] file: drivers/net/vrf # 6.81 [+0.00] description: Device driver to instantiate VRF domains # 6.81 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.15 [+0.34] # 7.15 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.65 [+0.49] # 7.65 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 8.01 [+0.37] # 8.02 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.31 [+0.29] # 8.31 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.51 [+0.20] # 8.51 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.92 [+0.41] # 8.92 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.10 [+0.18] # 9.10 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.45 [+0.34] # 9.45 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.80 [+0.35] # 9.80 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.97 [+0.17] # 9.97 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.22 [+0.25] # 10.22 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.39 [+0.17] # 10.39 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.72 [+0.33] # 10.72 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 11.08 [+0.36] # 11.08 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 11.08 [+0.00] # 11.08 [+0.00] ################################################################################ # 11.09 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 11.09 [+0.00] ################################################################################ # 11.41 [+0.33] name: vrf # 11.41 [+0.00] filename: (builtin) # 14.72 [+3.31] version: 1.1 # 14.73 [+0.00] alias: rtnl-link-vrf # 14.73 [+0.00] license: GPL # 14.73 [+0.00] file: drivers/net/vrf # 14.73 [+0.00] description: Device driver to instantiate VRF domains # 14.73 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.20 [+0.47] # 15.20 [+0.00] TEST: testns-PqIc64: net.vrf.strict_mode is available [ OK ] # 15.84 [+0.64] # 15.84 [+0.00] TEST: testns-PqIc64: strict_mode=0 by default, 0 vrfs [ OK ] # 16.18 [+0.34] # 16.18 [+0.00] TEST: testns-PqIc64: enable strict_mode (=1) [ OK ] # 16.51 [+0.33] # 16.51 [+0.00] TEST: testns-PqIc64: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.85 [+0.34] # 16.85 [+0.00] TEST: testns-PqIc64: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.24 [+0.39] # 17.24 [+0.00] TEST: testns-PqIc64: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.67 [+0.43] # 17.67 [+0.00] TEST: testns-PqIc64: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 18.00 [+0.33] # 18.00 [+0.00] TEST: testns-PqIc64: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.34 [+0.34] # 18.34 [+0.00] TEST: testns-PqIc64: disable strict_mode (=0) [ OK ] # 18.69 [+0.35] # 18.69 [+0.00] TEST: testns-PqIc64: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 19.06 [+0.38] # 19.06 [+0.00] TEST: testns-PqIc64: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 19.07 [+0.00] # 19.07 [+0.00] ################################################################################ # 19.07 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 19.07 [+0.00] ################################################################################ # 19.34 [+0.27] # 19.34 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.78 [+0.45] # 19.78 [+0.00] TEST: testns-PqIc64: check strict_mode=0 [ OK ] # 20.03 [+0.24] # 20.03 [+0.00] TEST: testns-PqIc64: remove vrf vrf101 [ OK ] # 20.25 [+0.23] # 20.25 [+0.00] TEST: testns-PqIc64: remove vrf vrf102 [ OK ] # 20.42 [+0.16] # 20.42 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.74 [+0.32] # 20.74 [+0.00] TEST: testns-PqIc64: enable strict_mode (=1) [ OK ] # 20.90 [+0.16] # 20.90 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.08 [+0.18] # 21.08 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.40 [+0.33] # 21.40 [+0.00] TEST: testns-PqIc64: disable strict_mode (=0) [ OK ] # 21.73 [+0.32] # 21.73 [+0.00] TEST: testns-PqIc64: disable strict_mode (=0) [ OK ] # 22.00 [+0.27] # 22.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.46 [+0.45] # 22.46 [+0.00] TEST: testns-PqIc64: check strict_mode=0 [ OK ] # 23.51 [+1.05] # 23.51 [+0.00] Tests passed: 37 # 23.51 [+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__->