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.67 [+2.67] # 2.67 [+0.00] ################################################################################ # 2.68 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.68 [+0.00] ################################################################################ # 3.02 [+0.34] name: vrf # 3.02 [+0.00] filename: (builtin) # 6.43 [+3.41] version: 1.1 # 6.43 [+0.00] alias: rtnl-link-vrf # 6.43 [+0.00] license: GPL # 6.44 [+0.00] file: drivers/net/vrf # 6.44 [+0.00] description: Device driver to instantiate VRF domains # 6.44 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.74 [+0.30] # 6.74 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.19 [+0.44] # 7.19 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.51 [+0.33] # 7.51 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.81 [+0.30] # 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.32 [+0.34] # 8.32 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.49 [+0.17] # 8.49 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.80 [+0.31] # 8.80 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.10 [+0.30] # 9.10 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.25 [+0.15] # 9.25 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.49 [+0.24] # 9.49 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.65 [+0.16] # 9.65 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.98 [+0.33] # 9.98 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.30 [+0.32] # 10.30 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.31 [+0.00] # 10.31 [+0.00] ################################################################################ # 10.31 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.31 [+0.00] ################################################################################ # 10.64 [+0.33] name: vrf # 10.64 [+0.00] filename: (builtin) # 14.08 [+3.44] version: 1.1 # 14.08 [+0.00] alias: rtnl-link-vrf # 14.09 [+0.00] license: GPL # 14.09 [+0.00] file: drivers/net/vrf # 14.09 [+0.00] description: Device driver to instantiate VRF domains # 14.09 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.50 [+0.41] # 14.50 [+0.00] TEST: testns-HQmwFn: net.vrf.strict_mode is available [ OK ] # 15.09 [+0.59] # 15.09 [+0.00] TEST: testns-HQmwFn: strict_mode=0 by default, 0 vrfs [ OK ] # 15.41 [+0.32] # 15.41 [+0.00] TEST: testns-HQmwFn: enable strict_mode (=1) [ OK ] # 15.73 [+0.32] # 15.73 [+0.00] TEST: testns-HQmwFn: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.06 [+0.33] # 16.06 [+0.00] TEST: testns-HQmwFn: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.44 [+0.38] # 16.44 [+0.00] TEST: testns-HQmwFn: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.84 [+0.40] # 16.84 [+0.00] TEST: testns-HQmwFn: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.17 [+0.33] # 17.17 [+0.00] TEST: testns-HQmwFn: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.49 [+0.32] # 17.49 [+0.00] TEST: testns-HQmwFn: disable strict_mode (=0) [ OK ] # 17.80 [+0.31] # 17.80 [+0.00] TEST: testns-HQmwFn: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.13 [+0.33] # 18.13 [+0.00] TEST: testns-HQmwFn: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.13 [+0.00] # 18.13 [+0.00] ################################################################################ # 18.14 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.14 [+0.00] ################################################################################ # 18.41 [+0.26] # 18.41 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.84 [+0.43] # 18.84 [+0.00] TEST: testns-HQmwFn: check strict_mode=0 [ OK ] # 19.06 [+0.22] # 19.06 [+0.00] TEST: testns-HQmwFn: remove vrf vrf101 [ OK ] # 19.28 [+0.23] # 19.28 [+0.00] TEST: testns-HQmwFn: 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-HQmwFn: enable strict_mode (=1) [ OK ] # 19.92 [+0.15] # 19.92 [+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.32] # 20.39 [+0.00] TEST: testns-HQmwFn: disable strict_mode (=0) [ OK ] # 20.72 [+0.33] # 20.72 [+0.00] TEST: testns-HQmwFn: disable strict_mode (=0) [ OK ] # 20.97 [+0.25] # 20.97 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.41 [+0.43] # 21.41 [+0.00] TEST: testns-HQmwFn: check strict_mode=0 [ OK ] # 22.40 [+0.99] # 22.40 [+0.00] Tests passed: 37 # 22.40 [+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__->