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.65 [+2.65] # 2.65 [+0.00] ################################################################################ # 2.65 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.65 [+0.00] ################################################################################ # 3.00 [+0.35] name: vrf # 3.00 [+0.00] filename: (builtin) # 6.06 [+3.05] version: 1.1 # 6.06 [+0.00] alias: rtnl-link-vrf # 6.06 [+0.00] license: GPL # 6.06 [+0.00] file: drivers/net/vrf # 6.06 [+0.00] description: Device driver to instantiate VRF domains # 6.06 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.35 [+0.29] # 6.35 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.77 [+0.42] # 6.77 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.09 [+0.32] # 7.09 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.39 [+0.30] # 7.39 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.56 [+0.17] # 7.56 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.90 [+0.35] # 7.90 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.06 [+0.16] # 8.06 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.37 [+0.30] # 8.37 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.66 [+0.29] # 8.66 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.81 [+0.16] # 8.81 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.05 [+0.24] # 9.05 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.21 [+0.15] # 9.21 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.53 [+0.33] # 9.53 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.87 [+0.34] # 9.87 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.87 [+0.00] # 9.87 [+0.00] ################################################################################ # 9.88 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.88 [+0.00] ################################################################################ # 10.24 [+0.36] name: vrf # 10.24 [+0.00] filename: (builtin) # 13.71 [+3.47] version: 1.1 # 13.71 [+0.00] alias: rtnl-link-vrf # 13.71 [+0.00] license: GPL # 13.71 [+0.00] file: drivers/net/vrf # 13.71 [+0.00] description: Device driver to instantiate VRF domains # 13.72 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.16 [+0.44] # 14.16 [+0.00] TEST: testns-8J89J3: net.vrf.strict_mode is available [ OK ] # 14.76 [+0.60] # 14.76 [+0.00] TEST: testns-8J89J3: strict_mode=0 by default, 0 vrfs [ OK ] # 15.07 [+0.31] # 15.07 [+0.00] TEST: testns-8J89J3: enable strict_mode (=1) [ OK ] # 15.38 [+0.31] # 15.38 [+0.00] TEST: testns-8J89J3: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.71 [+0.33] # 15.71 [+0.00] TEST: testns-8J89J3: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.09 [+0.38] # 16.09 [+0.00] TEST: testns-8J89J3: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.49 [+0.39] # 16.49 [+0.00] TEST: testns-8J89J3: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.81 [+0.33] # 16.81 [+0.00] TEST: testns-8J89J3: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.14 [+0.32] # 17.14 [+0.00] TEST: testns-8J89J3: disable strict_mode (=0) [ OK ] # 17.47 [+0.33] # 17.47 [+0.00] TEST: testns-8J89J3: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.79 [+0.32] # 17.79 [+0.00] TEST: testns-8J89J3: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.79 [+0.00] # 17.79 [+0.00] ################################################################################ # 17.79 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.80 [+0.00] ################################################################################ # 18.07 [+0.27] # 18.07 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.49 [+0.42] # 18.49 [+0.00] TEST: testns-8J89J3: check strict_mode=0 [ OK ] # 18.71 [+0.22] # 18.71 [+0.00] TEST: testns-8J89J3: remove vrf vrf101 [ OK ] # 18.94 [+0.22] # 18.94 [+0.00] TEST: testns-8J89J3: remove vrf vrf102 [ OK ] # 19.10 [+0.16] # 19.10 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.41 [+0.32] # 19.41 [+0.00] TEST: testns-8J89J3: enable strict_mode (=1) [ OK ] # 19.57 [+0.15] # 19.57 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.73 [+0.16] # 19.73 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.04 [+0.31] # 20.04 [+0.00] TEST: testns-8J89J3: disable strict_mode (=0) [ OK ] # 20.34 [+0.31] # 20.34 [+0.00] TEST: testns-8J89J3: disable strict_mode (=0) [ OK ] # 20.62 [+0.28] # 20.62 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.05 [+0.43] # 21.05 [+0.00] TEST: testns-8J89J3: check strict_mode=0 [ OK ] # 22.06 [+1.01] # 22.06 [+0.00] Tests passed: 37 # 22.06 [+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__->