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.82 [+2.82] # 2.82 [+0.00] ################################################################################ # 2.82 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.83 [+0.00] ################################################################################ # 3.18 [+0.36] name: vrf # 3.19 [+0.00] filename: (builtin) # 6.38 [+3.19] version: 1.1 # 6.38 [+0.00] alias: rtnl-link-vrf # 6.38 [+0.00] license: GPL # 6.38 [+0.00] file: drivers/net/vrf # 6.38 [+0.00] description: Device driver to instantiate VRF domains # 6.38 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.67 [+0.29] # 6.67 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.12 [+0.45] # 7.12 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.46 [+0.34] # 7.46 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.81 [+0.35] # 7.81 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.98 [+0.17] # 7.98 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.39 [+0.41] # 8.39 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.56 [+0.17] # 8.56 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.88 [+0.33] # 8.88 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.21 [+0.33] # 9.21 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.36 [+0.15] # 9.36 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.60 [+0.24] # 9.60 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.76 [+0.15] # 9.76 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.10 [+0.34] # 10.10 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.42 [+0.32] # 10.42 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.42 [+0.00] # 10.42 [+0.00] ################################################################################ # 10.43 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.43 [+0.00] ################################################################################ # 10.78 [+0.35] name: vrf # 10.78 [+0.00] filename: (builtin) # 13.95 [+3.16] version: 1.1 # 13.95 [+0.00] alias: rtnl-link-vrf # 13.95 [+0.00] license: GPL # 13.95 [+0.00] file: drivers/net/vrf # 13.95 [+0.00] description: Device driver to instantiate VRF domains # 13.96 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.40 [+0.44] # 14.40 [+0.00] TEST: testns-st8SP3: net.vrf.strict_mode is available [ OK ] # 15.04 [+0.64] # 15.04 [+0.00] TEST: testns-st8SP3: strict_mode=0 by default, 0 vrfs [ OK ] # 15.38 [+0.34] # 15.38 [+0.00] TEST: testns-st8SP3: enable strict_mode (=1) [ OK ] # 15.71 [+0.33] # 15.71 [+0.00] TEST: testns-st8SP3: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.06 [+0.35] # 16.06 [+0.00] TEST: testns-st8SP3: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.44 [+0.38] # 16.44 [+0.00] TEST: testns-st8SP3: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.85 [+0.41] # 16.85 [+0.00] TEST: testns-st8SP3: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.19 [+0.34] # 17.19 [+0.00] TEST: testns-st8SP3: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.49 [+0.31] # 17.49 [+0.00] TEST: testns-st8SP3: disable strict_mode (=0) [ OK ] # 17.82 [+0.33] # 17.82 [+0.00] TEST: testns-st8SP3: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.15 [+0.33] # 18.15 [+0.00] TEST: testns-st8SP3: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.15 [+0.00] # 18.15 [+0.00] ################################################################################ # 18.16 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.16 [+0.00] ################################################################################ # 18.42 [+0.26] # 18.42 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.86 [+0.44] # 18.86 [+0.00] TEST: testns-st8SP3: check strict_mode=0 [ OK ] # 19.09 [+0.23] # 19.09 [+0.00] TEST: testns-st8SP3: remove vrf vrf101 [ OK ] # 19.29 [+0.20] # 19.29 [+0.00] TEST: testns-st8SP3: remove vrf vrf102 [ OK ] # 19.45 [+0.16] # 19.45 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.77 [+0.32] # 19.77 [+0.00] TEST: testns-st8SP3: enable strict_mode (=1) [ OK ] # 19.93 [+0.16] # 19.93 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.08 [+0.15] # 20.08 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.39 [+0.31] # 20.39 [+0.00] TEST: testns-st8SP3: disable strict_mode (=0) [ OK ] # 20.70 [+0.31] # 20.70 [+0.00] TEST: testns-st8SP3: disable strict_mode (=0) [ OK ] # 21.00 [+0.30] # 21.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.41 [+0.41] # 21.41 [+0.00] TEST: testns-st8SP3: check strict_mode=0 [ OK ] # 22.41 [+0.99] # 22.41 [+0.00] Tests passed: 37 # 22.41 [+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__->