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/wt-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net/lib' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 2.63 [+2.63] # 2.64 [+0.01] ################################################################################ # 2.64 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.65 [+0.00] ################################################################################ # 2.98 [+0.34] name: vrf # 2.99 [+0.00] filename: (builtin) # 2.99 [+0.01] version: 1.1 # 2.99 [+0.00] alias: rtnl-link-vrf # 3.00 [+0.00] license: GPL # 3.00 [+0.00] file: drivers/net/vrf # 3.00 [+0.00] description: Device driver to instantiate VRF domains # 3.00 [+0.00] author: Shrijeet Mukherjee, David Ahern # 3.20 [+0.20] # 3.21 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.58 [+0.37] # 3.58 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.98 [+0.40] # 3.99 [+0.01] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.25 [+0.26] # 4.25 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 4.38 [+0.14] # 4.39 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.86 [+0.47] # 4.86 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.01 [+0.15] # 5.01 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 5.36 [+0.36] # 5.36 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.65 [+0.29] # 5.66 [+0.01] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 5.80 [+0.14] # 5.81 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.99 [+0.18] # 5.99 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 6.13 [+0.13] # 6.13 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 6.50 [+0.37] # 6.50 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 6.80 [+0.30] # 6.80 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 6.80 [+0.00] # 6.80 [+0.00] ################################################################################ # 6.81 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 6.81 [+0.00] ################################################################################ # 7.22 [+0.41] name: vrf # 7.22 [+0.00] filename: (builtin) # 7.23 [+0.01] version: 1.1 # 7.23 [+0.00] alias: rtnl-link-vrf # 7.23 [+0.00] license: GPL # 7.23 [+0.00] file: drivers/net/vrf # 7.23 [+0.00] description: Device driver to instantiate VRF domains # 7.24 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.63 [+0.39] # 7.63 [+0.00] TEST: testns-GnZfyJ: net.vrf.strict_mode is available [ OK ] # 8.28 [+0.65] # 8.29 [+0.00] TEST: testns-GnZfyJ: strict_mode=0 by default, 0 vrfs [ OK ] # 8.59 [+0.30] # 8.60 [+0.01] TEST: testns-GnZfyJ: enable strict_mode (=1) [ OK ] # 8.95 [+0.35] # 8.95 [+0.00] TEST: testns-GnZfyJ: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 9.24 [+0.29] # 9.25 [+0.01] TEST: testns-GnZfyJ: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 9.62 [+0.37] # 9.62 [+0.00] TEST: testns-GnZfyJ: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.99 [+0.38] # 10.00 [+0.01] TEST: testns-GnZfyJ: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 10.40 [+0.39] # 10.40 [+0.00] TEST: testns-GnZfyJ: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 10.67 [+0.27] # 10.67 [+0.00] TEST: testns-GnZfyJ: disable strict_mode (=0) [ OK ] # 11.08 [+0.41] # 11.09 [+0.01] TEST: testns-GnZfyJ: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 11.52 [+0.43] # 11.52 [+0.00] TEST: testns-GnZfyJ: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 11.53 [+0.01] # 11.53 [+0.00] ################################################################################ # 11.53 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 11.53 [+0.00] ################################################################################ # 11.82 [+0.28] # 11.82 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 12.27 [+0.45] # 12.28 [+0.01] TEST: testns-GnZfyJ: check strict_mode=0 [ OK ] # 12.52 [+0.24] # 12.52 [+0.01] TEST: testns-GnZfyJ: remove vrf vrf101 [ OK ] # 12.70 [+0.18] # 12.70 [+0.00] TEST: testns-GnZfyJ: remove vrf vrf102 [ OK ] # 12.87 [+0.17] # 12.88 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 13.21 [+0.33] # 13.22 [+0.01] TEST: testns-GnZfyJ: enable strict_mode (=1) [ OK ] # 13.36 [+0.15] # 13.37 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 13.49 [+0.12] # 13.49 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 13.79 [+0.30] # 13.79 [+0.00] TEST: testns-GnZfyJ: disable strict_mode (=0) [ OK ] # 14.08 [+0.29] # 14.08 [+0.00] TEST: testns-GnZfyJ: disable strict_mode (=0) [ OK ] # 14.31 [+0.22] # 14.32 [+0.01] TEST: init: check strict_mode=1 [ OK ] # 14.69 [+0.38] # 14.69 [+0.00] TEST: testns-GnZfyJ: check strict_mode=0 [ OK ] # 15.64 [+0.95] # 15.65 [+0.00] Tests passed: 37 # 15.65 [+0.00] Tests failed: 0 ok 1 selftests: net: vrf_strict_mode_test.sh make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->