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.83 [+2.83] # 2.83 [+0.00] ################################################################################ # 2.84 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.84 [+0.00] ################################################################################ # 3.25 [+0.41] name: vrf # 3.25 [+0.00] filename: (builtin) # 6.89 [+3.64] version: 1.1 # 6.89 [+0.00] alias: rtnl-link-vrf # 6.89 [+0.00] license: GPL # 6.89 [+0.00] file: drivers/net/vrf # 6.90 [+0.00] description: Device driver to instantiate VRF domains # 6.90 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.20 [+0.30] # 7.20 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.61 [+0.41] # 7.62 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.98 [+0.37] # 7.98 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.33 [+0.35] # 8.33 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.50 [+0.17] # 8.50 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.88 [+0.38] # 8.88 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.04 [+0.15] # 9.04 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.37 [+0.34] # 9.37 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.72 [+0.34] # 9.72 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.87 [+0.16] # 9.87 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.12 [+0.25] # 10.12 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.29 [+0.17] # 10.29 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.61 [+0.32] # 10.61 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.94 [+0.33] # 10.94 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.94 [+0.00] # 10.94 [+0.00] ################################################################################ # 10.95 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.95 [+0.00] ################################################################################ # 11.32 [+0.37] name: vrf # 11.32 [+0.00] filename: (builtin) # 15.00 [+3.68] version: 1.1 # 15.01 [+0.00] alias: rtnl-link-vrf # 15.01 [+0.00] license: GPL # 15.01 [+0.00] file: drivers/net/vrf # 15.01 [+0.00] description: Device driver to instantiate VRF domains # 15.01 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.46 [+0.45] # 15.46 [+0.00] TEST: testns-HQ725f: net.vrf.strict_mode is available [ OK ] # 16.04 [+0.58] # 16.04 [+0.00] TEST: testns-HQ725f: strict_mode=0 by default, 0 vrfs [ OK ] # 16.36 [+0.32] # 16.36 [+0.00] TEST: testns-HQ725f: enable strict_mode (=1) [ OK ] # 16.72 [+0.36] # 16.72 [+0.00] TEST: testns-HQ725f: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 17.08 [+0.36] # 17.08 [+0.00] TEST: testns-HQ725f: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.48 [+0.40] # 17.48 [+0.00] TEST: testns-HQ725f: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.87 [+0.40] # 17.87 [+0.00] TEST: testns-HQ725f: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 18.19 [+0.32] # 18.19 [+0.00] TEST: testns-HQ725f: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.51 [+0.31] # 18.51 [+0.00] TEST: testns-HQ725f: disable strict_mode (=0) [ OK ] # 18.85 [+0.34] # 18.85 [+0.00] TEST: testns-HQ725f: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 19.18 [+0.33] # 19.18 [+0.00] TEST: testns-HQ725f: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 19.18 [+0.00] # 19.18 [+0.00] ################################################################################ # 19.19 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 19.19 [+0.00] ################################################################################ # 19.47 [+0.28] # 19.47 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.88 [+0.41] # 19.88 [+0.00] TEST: testns-HQ725f: check strict_mode=0 [ OK ] # 20.10 [+0.22] # 20.10 [+0.00] TEST: testns-HQ725f: remove vrf vrf101 [ OK ] # 20.34 [+0.23] # 20.34 [+0.00] TEST: testns-HQ725f: remove vrf vrf102 [ OK ] # 20.49 [+0.15] # 20.49 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.81 [+0.31] # 20.81 [+0.00] TEST: testns-HQ725f: enable strict_mode (=1) [ OK ] # 20.97 [+0.16] # 20.97 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.13 [+0.16] # 21.13 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.44 [+0.30] # 21.44 [+0.00] TEST: testns-HQ725f: disable strict_mode (=0) [ OK ] # 21.74 [+0.31] # 21.74 [+0.00] TEST: testns-HQ725f: disable strict_mode (=0) [ OK ] # 22.02 [+0.28] # 22.02 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.43 [+0.41] # 22.43 [+0.00] TEST: testns-HQ725f: check strict_mode=0 [ OK ] # 23.44 [+1.01] # 23.44 [+0.00] Tests passed: 37 # 23.44 [+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__->