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.79 [+2.79] # 2.79 [+0.00] ################################################################################ # 2.79 [+0.01] TEST SECTION: VRF strict_mode test on init network namespace # 2.80 [+0.00] ################################################################################ # 3.15 [+0.35] name: vrf # 3.15 [+0.00] filename: (builtin) # 6.65 [+3.50] version: 1.1 # 6.65 [+0.00] alias: rtnl-link-vrf # 6.65 [+0.00] license: GPL # 6.65 [+0.00] file: drivers/net/vrf # 6.65 [+0.00] description: Device driver to instantiate VRF domains # 6.65 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.94 [+0.29] # 6.94 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.42 [+0.47] # 7.42 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.76 [+0.35] # 7.76 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.07 [+0.31] # 8.07 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.27 [+0.20] # 8.27 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.64 [+0.38] # 8.65 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.82 [+0.17] # 8.82 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.17 [+0.35] # 9.17 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.52 [+0.35] # 9.52 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.69 [+0.18] # 9.69 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.95 [+0.26] # 9.95 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.13 [+0.17] # 10.13 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.45 [+0.33] # 10.45 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.80 [+0.35] # 10.80 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.80 [+0.00] # 10.80 [+0.00] ################################################################################ # 10.80 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.81 [+0.00] ################################################################################ # 11.13 [+0.33] name: vrf # 11.14 [+0.00] filename: (builtin) # 14.63 [+3.49] version: 1.1 # 14.63 [+0.00] alias: rtnl-link-vrf # 14.63 [+0.00] license: GPL # 14.63 [+0.00] file: drivers/net/vrf # 14.63 [+0.00] description: Device driver to instantiate VRF domains # 14.63 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.09 [+0.46] # 15.10 [+0.00] TEST: testns-TpiC5d: net.vrf.strict_mode is available [ OK ] # 15.73 [+0.64] # 15.73 [+0.00] TEST: testns-TpiC5d: strict_mode=0 by default, 0 vrfs [ OK ] # 16.07 [+0.34] # 16.07 [+0.00] TEST: testns-TpiC5d: enable strict_mode (=1) [ OK ] # 16.40 [+0.33] # 16.40 [+0.00] TEST: testns-TpiC5d: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.76 [+0.35] # 16.76 [+0.00] TEST: testns-TpiC5d: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.14 [+0.38] # 17.14 [+0.00] TEST: testns-TpiC5d: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.55 [+0.41] # 17.55 [+0.00] TEST: testns-TpiC5d: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.89 [+0.33] # 17.89 [+0.00] TEST: testns-TpiC5d: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.23 [+0.34] # 18.23 [+0.00] TEST: testns-TpiC5d: disable strict_mode (=0) [ OK ] # 18.56 [+0.33] # 18.56 [+0.00] TEST: testns-TpiC5d: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.89 [+0.33] # 18.89 [+0.00] TEST: testns-TpiC5d: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.90 [+0.00] # 18.90 [+0.00] ################################################################################ # 18.90 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.90 [+0.00] ################################################################################ # 19.18 [+0.28] # 19.18 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.63 [+0.45] # 19.63 [+0.00] TEST: testns-TpiC5d: check strict_mode=0 [ OK ] # 19.86 [+0.23] # 19.86 [+0.00] TEST: testns-TpiC5d: remove vrf vrf101 [ OK ] # 20.09 [+0.23] # 20.09 [+0.00] TEST: testns-TpiC5d: remove vrf vrf102 [ OK ] # 20.26 [+0.17] # 20.26 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.57 [+0.32] # 20.57 [+0.00] TEST: testns-TpiC5d: enable strict_mode (=1) [ OK ] # 20.73 [+0.15] # 20.73 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.90 [+0.17] # 20.90 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.21 [+0.31] # 21.21 [+0.00] TEST: testns-TpiC5d: disable strict_mode (=0) [ OK ] # 21.52 [+0.31] # 21.52 [+0.00] TEST: testns-TpiC5d: disable strict_mode (=0) [ OK ] # 21.77 [+0.25] # 21.77 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.20 [+0.44] # 22.20 [+0.00] TEST: testns-TpiC5d: check strict_mode=0 [ OK ] # 23.25 [+1.05] # 23.25 [+0.00] Tests passed: 37 # 23.25 [+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__->