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.29 [+2.29] # 2.29 [+0.00] ################################################################################ # 2.29 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.30 [+0.00] ################################################################################ # 2.64 [+0.34] name: vrf # 2.64 [+0.00] filename: (builtin) # 5.73 [+3.09] version: 1.1 # 5.73 [+0.00] alias: rtnl-link-vrf # 5.73 [+0.00] license: GPL # 5.73 [+0.00] file: drivers/net/vrf # 5.73 [+0.00] description: Device driver to instantiate VRF domains # 5.73 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.04 [+0.31] # 6.04 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.46 [+0.42] # 6.46 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.77 [+0.31] # 6.77 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.08 [+0.31] # 7.08 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.24 [+0.16] # 7.24 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.57 [+0.32] # 7.57 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.75 [+0.18] # 7.75 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.07 [+0.32] # 8.07 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.39 [+0.32] # 8.39 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.54 [+0.15] # 8.54 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.75 [+0.21] # 8.75 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.91 [+0.16] # 8.91 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.22 [+0.32] # 9.22 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.54 [+0.31] # 9.54 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.54 [+0.00] # 9.54 [+0.00] ################################################################################ # 9.54 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.55 [+0.00] ################################################################################ # 9.87 [+0.32] name: vrf # 9.87 [+0.00] filename: (builtin) # 12.95 [+3.07] version: 1.1 # 12.95 [+0.00] alias: rtnl-link-vrf # 12.95 [+0.00] license: GPL # 12.95 [+0.00] file: drivers/net/vrf # 12.95 [+0.00] description: Device driver to instantiate VRF domains # 12.95 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.36 [+0.41] # 13.36 [+0.00] TEST: testns-1ZgkS8: net.vrf.strict_mode is available [ OK ] # 13.87 [+0.51] # 13.87 [+0.00] TEST: testns-1ZgkS8: strict_mode=0 by default, 0 vrfs [ OK ] # 14.17 [+0.30] # 14.17 [+0.00] TEST: testns-1ZgkS8: enable strict_mode (=1) [ OK ] # 14.48 [+0.30] # 14.48 [+0.00] TEST: testns-1ZgkS8: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.80 [+0.32] # 14.80 [+0.00] TEST: testns-1ZgkS8: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.15 [+0.35] # 15.15 [+0.00] TEST: testns-1ZgkS8: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.49 [+0.34] # 15.49 [+0.00] TEST: testns-1ZgkS8: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.81 [+0.33] # 15.81 [+0.00] TEST: testns-1ZgkS8: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.11 [+0.30] # 16.11 [+0.00] TEST: testns-1ZgkS8: disable strict_mode (=0) [ OK ] # 16.43 [+0.31] # 16.43 [+0.00] TEST: testns-1ZgkS8: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.74 [+0.32] # 16.74 [+0.00] TEST: testns-1ZgkS8: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.75 [+0.00] # 16.75 [+0.00] ################################################################################ # 16.75 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.75 [+0.00] ################################################################################ # 17.01 [+0.26] # 17.01 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.40 [+0.39] # 17.40 [+0.00] TEST: testns-1ZgkS8: check strict_mode=0 [ OK ] # 17.62 [+0.21] # 17.62 [+0.00] TEST: testns-1ZgkS8: remove vrf vrf101 [ OK ] # 17.83 [+0.22] # 17.83 [+0.00] TEST: testns-1ZgkS8: remove vrf vrf102 [ OK ] # 17.98 [+0.15] # 17.98 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.28 [+0.29] # 18.28 [+0.00] TEST: testns-1ZgkS8: enable strict_mode (=1) [ OK ] # 18.43 [+0.16] # 18.43 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.57 [+0.14] # 18.57 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.87 [+0.30] # 18.87 [+0.00] TEST: testns-1ZgkS8: disable strict_mode (=0) [ OK ] # 19.17 [+0.30] # 19.17 [+0.00] TEST: testns-1ZgkS8: disable strict_mode (=0) [ OK ] # 19.42 [+0.25] # 19.42 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.84 [+0.42] # 19.84 [+0.00] TEST: testns-1ZgkS8: check strict_mode=0 [ OK ] # 20.80 [+0.96] # 20.80 [+0.00] Tests passed: 37 # 20.80 [+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__->