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.55 [+2.55] # 2.55 [+0.00] ################################################################################ # 2.55 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.56 [+0.00] ################################################################################ # 2.93 [+0.37] name: vrf # 2.93 [+0.00] filename: (builtin) # 6.24 [+3.31] version: 1.1 # 6.24 [+0.00] alias: rtnl-link-vrf # 6.24 [+0.00] license: GPL # 6.24 [+0.00] file: drivers/net/vrf # 6.24 [+0.00] description: Device driver to instantiate VRF domains # 6.24 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.50 [+0.26] # 6.50 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.95 [+0.45] # 6.95 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.27 [+0.32] # 7.27 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.57 [+0.30] # 7.57 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.74 [+0.18] # 7.74 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.08 [+0.34] # 8.08 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.25 [+0.17] # 8.25 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.57 [+0.32] # 8.57 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.88 [+0.31] # 8.88 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.03 [+0.15] # 9.03 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.25 [+0.22] # 9.25 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.41 [+0.16] # 9.41 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.71 [+0.30] # 9.71 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.02 [+0.31] # 10.02 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.03 [+0.00] # 10.03 [+0.00] ################################################################################ # 10.03 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.03 [+0.00] ################################################################################ # 10.38 [+0.35] name: vrf # 10.38 [+0.00] filename: (builtin) # 13.77 [+3.39] version: 1.1 # 13.77 [+0.00] alias: rtnl-link-vrf # 13.77 [+0.00] license: GPL # 13.78 [+0.00] file: drivers/net/vrf # 13.78 [+0.00] description: Device driver to instantiate VRF domains # 13.78 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.21 [+0.43] # 14.21 [+0.00] TEST: testns-H5ABqa: net.vrf.strict_mode is available [ OK ] # 14.75 [+0.54] # 14.75 [+0.00] TEST: testns-H5ABqa: strict_mode=0 by default, 0 vrfs [ OK ] # 15.07 [+0.32] # 15.07 [+0.00] TEST: testns-H5ABqa: enable strict_mode (=1) [ OK ] # 15.39 [+0.32] # 15.39 [+0.00] TEST: testns-H5ABqa: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.72 [+0.34] # 15.72 [+0.00] TEST: testns-H5ABqa: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.05 [+0.33] # 16.05 [+0.00] TEST: testns-H5ABqa: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.43 [+0.38] # 16.43 [+0.00] TEST: testns-H5ABqa: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.75 [+0.32] # 16.75 [+0.00] TEST: testns-H5ABqa: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.07 [+0.31] # 17.07 [+0.00] TEST: testns-H5ABqa: disable strict_mode (=0) [ OK ] # 17.38 [+0.31] # 17.38 [+0.00] TEST: testns-H5ABqa: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.71 [+0.33] # 17.71 [+0.00] TEST: testns-H5ABqa: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.71 [+0.00] # 17.71 [+0.00] ################################################################################ # 17.71 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.72 [+0.00] ################################################################################ # 17.98 [+0.26] # 17.98 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.38 [+0.40] # 18.38 [+0.00] TEST: testns-H5ABqa: check strict_mode=0 [ OK ] # 18.61 [+0.23] # 18.61 [+0.00] TEST: testns-H5ABqa: remove vrf vrf101 [ OK ] # 18.83 [+0.22] # 18.83 [+0.00] TEST: testns-H5ABqa: remove vrf vrf102 [ OK ] # 18.98 [+0.16] # 18.99 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.29 [+0.31] # 19.29 [+0.00] TEST: testns-H5ABqa: enable strict_mode (=1) [ OK ] # 19.44 [+0.14] # 19.44 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.59 [+0.15] # 19.59 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.90 [+0.32] # 19.90 [+0.00] TEST: testns-H5ABqa: disable strict_mode (=0) [ OK ] # 20.19 [+0.29] # 20.19 [+0.00] TEST: testns-H5ABqa: disable strict_mode (=0) [ OK ] # 20.45 [+0.25] # 20.45 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.85 [+0.40] # 20.85 [+0.00] TEST: testns-H5ABqa: check strict_mode=0 [ OK ] # 21.83 [+0.98] # 21.83 [+0.00] Tests passed: 37 # 21.83 [+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__->