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.75 [+2.75] # 2.75 [+0.00] ################################################################################ # 2.75 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.75 [+0.00] ################################################################################ # 3.10 [+0.35] name: vrf # 3.10 [+0.00] filename: (builtin) # 6.72 [+3.61] version: 1.1 # 6.72 [+0.00] alias: rtnl-link-vrf # 6.72 [+0.00] license: GPL # 6.72 [+0.00] file: drivers/net/vrf # 6.72 [+0.00] description: Device driver to instantiate VRF domains # 6.72 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.02 [+0.30] # 7.02 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.50 [+0.48] # 7.50 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.84 [+0.34] # 7.84 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.16 [+0.32] # 8.16 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.33 [+0.17] # 8.33 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.69 [+0.36] # 8.69 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.86 [+0.17] # 8.86 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.19 [+0.33] # 9.19 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.53 [+0.34] # 9.53 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.68 [+0.15] # 9.68 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.91 [+0.23] # 9.91 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.06 [+0.16] # 10.07 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.40 [+0.33] # 10.40 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.73 [+0.33] # 10.73 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.73 [+0.00] # 10.73 [+0.00] ################################################################################ # 10.73 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.73 [+0.00] ################################################################################ # 11.05 [+0.32] name: vrf # 11.06 [+0.00] filename: (builtin) # 14.48 [+3.42] version: 1.1 # 14.48 [+0.00] alias: rtnl-link-vrf # 14.48 [+0.00] license: GPL # 14.48 [+0.00] file: drivers/net/vrf # 14.48 [+0.00] description: Device driver to instantiate VRF domains # 14.48 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.92 [+0.43] # 14.92 [+0.00] TEST: testns-Cwq93F: net.vrf.strict_mode is available [ OK ] # 15.55 [+0.63] # 15.55 [+0.00] TEST: testns-Cwq93F: strict_mode=0 by default, 0 vrfs [ OK ] # 15.85 [+0.30] # 15.85 [+0.00] TEST: testns-Cwq93F: enable strict_mode (=1) [ OK ] # 16.18 [+0.33] # 16.18 [+0.00] TEST: testns-Cwq93F: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.53 [+0.35] # 16.53 [+0.00] TEST: testns-Cwq93F: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.89 [+0.37] # 16.89 [+0.00] TEST: testns-Cwq93F: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.27 [+0.37] # 17.27 [+0.00] TEST: testns-Cwq93F: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.61 [+0.34] # 17.61 [+0.00] TEST: testns-Cwq93F: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.92 [+0.31] # 17.92 [+0.00] TEST: testns-Cwq93F: disable strict_mode (=0) [ OK ] # 18.26 [+0.34] # 18.26 [+0.00] TEST: testns-Cwq93F: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.60 [+0.34] # 18.60 [+0.00] TEST: testns-Cwq93F: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.60 [+0.00] # 18.60 [+0.00] ################################################################################ # 18.60 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.61 [+0.00] ################################################################################ # 18.88 [+0.27] # 18.88 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.31 [+0.43] # 19.31 [+0.00] TEST: testns-Cwq93F: check strict_mode=0 [ OK ] # 19.52 [+0.22] # 19.52 [+0.00] TEST: testns-Cwq93F: remove vrf vrf101 [ OK ] # 19.75 [+0.23] # 19.75 [+0.00] TEST: testns-Cwq93F: remove vrf vrf102 [ OK ] # 19.91 [+0.15] # 19.91 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.22 [+0.32] # 20.22 [+0.00] TEST: testns-Cwq93F: enable strict_mode (=1) [ OK ] # 20.37 [+0.15] # 20.37 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.53 [+0.16] # 20.53 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.85 [+0.31] # 20.85 [+0.00] TEST: testns-Cwq93F: disable strict_mode (=0) [ OK ] # 21.15 [+0.31] # 21.15 [+0.00] TEST: testns-Cwq93F: disable strict_mode (=0) [ OK ] # 21.44 [+0.28] # 21.44 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.88 [+0.44] # 21.88 [+0.00] TEST: testns-Cwq93F: check strict_mode=0 [ OK ] # 22.86 [+0.98] # 22.86 [+0.00] Tests passed: 37 # 22.86 [+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__->