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.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.79 [+0.00] ################################################################################ # 3.16 [+0.37] name: vrf # 3.16 [+0.00] filename: (builtin) # 6.87 [+3.71] version: 1.1 # 6.87 [+0.00] alias: rtnl-link-vrf # 6.87 [+0.00] license: GPL # 6.88 [+0.00] file: drivers/net/vrf # 6.88 [+0.00] description: Device driver to instantiate VRF domains # 6.88 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.14 [+0.26] # 7.14 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.69 [+0.54] # 7.69 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 8.02 [+0.33] # 8.02 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.34 [+0.32] # 8.34 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.51 [+0.17] # 8.51 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.86 [+0.35] # 8.86 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.03 [+0.17] # 9.03 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.33 [+0.30] # 9.33 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.65 [+0.32] # 9.65 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.81 [+0.16] # 9.81 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.07 [+0.25] # 10.07 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.22 [+0.15] # 10.22 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.51 [+0.30] # 10.51 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.83 [+0.31] # 10.83 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.83 [+0.00] # 10.83 [+0.00] ################################################################################ # 10.83 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.84 [+0.00] ################################################################################ # 11.16 [+0.32] name: vrf # 11.16 [+0.00] filename: (builtin) # 14.22 [+3.06] version: 1.1 # 14.22 [+0.00] alias: rtnl-link-vrf # 14.22 [+0.00] license: GPL # 14.22 [+0.00] file: drivers/net/vrf # 14.22 [+0.00] description: Device driver to instantiate VRF domains # 14.22 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.66 [+0.44] # 14.66 [+0.00] TEST: testns-k3yhkM: net.vrf.strict_mode is available [ OK ] # 15.24 [+0.57] # 15.24 [+0.00] TEST: testns-k3yhkM: strict_mode=0 by default, 0 vrfs [ OK ] # 15.55 [+0.32] # 15.55 [+0.00] TEST: testns-k3yhkM: enable strict_mode (=1) [ OK ] # 15.87 [+0.32] # 15.87 [+0.00] TEST: testns-k3yhkM: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.19 [+0.33] # 16.20 [+0.00] TEST: testns-k3yhkM: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.59 [+0.39] # 16.59 [+0.00] TEST: testns-k3yhkM: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.96 [+0.38] # 16.96 [+0.00] TEST: testns-k3yhkM: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.30 [+0.34] # 17.30 [+0.00] TEST: testns-k3yhkM: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.61 [+0.30] # 17.61 [+0.00] TEST: testns-k3yhkM: disable strict_mode (=0) [ OK ] # 17.92 [+0.31] # 17.92 [+0.00] TEST: testns-k3yhkM: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.25 [+0.33] # 18.25 [+0.00] TEST: testns-k3yhkM: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.25 [+0.00] # 18.25 [+0.00] ################################################################################ # 18.25 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.26 [+0.00] ################################################################################ # 18.52 [+0.26] # 18.52 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.94 [+0.42] # 18.94 [+0.00] TEST: testns-k3yhkM: check strict_mode=0 [ OK ] # 19.15 [+0.22] # 19.15 [+0.00] TEST: testns-k3yhkM: remove vrf vrf101 [ OK ] # 19.37 [+0.22] # 19.37 [+0.00] TEST: testns-k3yhkM: remove vrf vrf102 [ OK ] # 19.52 [+0.15] # 19.52 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.83 [+0.31] # 19.83 [+0.00] TEST: testns-k3yhkM: enable strict_mode (=1) [ OK ] # 19.99 [+0.16] # 19.99 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.14 [+0.15] # 20.14 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.43 [+0.29] # 20.43 [+0.00] TEST: testns-k3yhkM: disable strict_mode (=0) [ OK ] # 20.74 [+0.30] # 20.74 [+0.00] TEST: testns-k3yhkM: disable strict_mode (=0) [ OK ] # 21.01 [+0.27] # 21.01 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.43 [+0.42] # 21.43 [+0.00] TEST: testns-k3yhkM: check strict_mode=0 [ OK ] # 22.42 [+0.99] # 22.42 [+0.00] Tests passed: 37 # 22.42 [+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__->