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.90 [+2.90] # 2.90 [+0.00] ################################################################################ # 2.91 [+0.01] TEST SECTION: VRF strict_mode test on init network namespace # 2.91 [+0.01] ################################################################################ # 3.20 [+0.29] name: vrf # 3.21 [+0.00] filename: (builtin) # 3.21 [+0.01] version: 1.1 # 3.22 [+0.00] alias: rtnl-link-vrf # 3.22 [+0.00] license: GPL # 3.22 [+0.00] file: drivers/net/vrf # 3.22 [+0.00] description: Device driver to instantiate VRF domains # 3.23 [+0.00] author: Shrijeet Mukherjee, David Ahern # 3.42 [+0.19] # 3.42 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.74 [+0.32] # 3.74 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 4.08 [+0.34] # 4.08 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.33 [+0.25] # 4.33 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 4.46 [+0.12] # 4.46 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.83 [+0.37] # 4.83 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.94 [+0.11] # 4.94 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 5.26 [+0.31] # 5.26 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.49 [+0.23] # 5.49 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 5.61 [+0.12] # 5.61 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.76 [+0.15] # 5.76 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 5.88 [+0.12] # 5.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 6.18 [+0.30] # 6.18 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 6.48 [+0.30] # 6.48 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 6.48 [+0.00] # 6.48 [+0.00] ################################################################################ # 6.49 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 6.49 [+0.00] ################################################################################ # 6.77 [+0.28] name: vrf # 6.77 [+0.00] filename: (builtin) # 6.79 [+0.02] version: 1.1 # 6.79 [+0.00] alias: rtnl-link-vrf # 6.79 [+0.00] license: GPL # 6.79 [+0.00] file: drivers/net/vrf # 6.79 [+0.00] description: Device driver to instantiate VRF domains # 6.80 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.08 [+0.29] # 7.08 [+0.00] TEST: testns-2K5kr3: net.vrf.strict_mode is available [ OK ] # 7.54 [+0.46] # 7.54 [+0.00] TEST: testns-2K5kr3: strict_mode=0 by default, 0 vrfs [ OK ] # 7.75 [+0.21] # 7.75 [+0.00] TEST: testns-2K5kr3: enable strict_mode (=1) [ OK ] # 8.04 [+0.29] # 8.04 [+0.00] TEST: testns-2K5kr3: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.29 [+0.25] # 8.29 [+0.00] TEST: testns-2K5kr3: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 8.60 [+0.31] # 8.60 [+0.00] TEST: testns-2K5kr3: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.97 [+0.37] # 8.97 [+0.00] TEST: testns-2K5kr3: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 9.24 [+0.26] # 9.24 [+0.00] TEST: testns-2K5kr3: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 9.45 [+0.21] # 9.45 [+0.00] TEST: testns-2K5kr3: disable strict_mode (=0) [ OK ] # 9.73 [+0.28] # 9.73 [+0.00] TEST: testns-2K5kr3: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 10.06 [+0.33] # 10.06 [+0.00] TEST: testns-2K5kr3: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 10.06 [+0.00] # 10.06 [+0.00] ################################################################################ # 10.06 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 10.07 [+0.00] ################################################################################ # 10.24 [+0.18] # 10.24 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.52 [+0.28] # 10.52 [+0.00] TEST: testns-2K5kr3: check strict_mode=0 [ OK ] # 10.67 [+0.15] # 10.67 [+0.00] TEST: testns-2K5kr3: remove vrf vrf101 [ OK ] # 10.85 [+0.18] # 10.85 [+0.00] TEST: testns-2K5kr3: remove vrf vrf102 [ OK ] # 10.95 [+0.10] # 10.95 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 11.16 [+0.21] # 11.16 [+0.00] TEST: testns-2K5kr3: enable strict_mode (=1) [ OK ] # 11.26 [+0.11] # 11.26 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.38 [+0.11] # 11.38 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.58 [+0.20] # 11.58 [+0.00] TEST: testns-2K5kr3: disable strict_mode (=0) [ OK ] # 11.78 [+0.20] # 11.78 [+0.00] TEST: testns-2K5kr3: disable strict_mode (=0) [ OK ] # 12.00 [+0.21] # 12.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 12.31 [+0.31] # 12.31 [+0.00] TEST: testns-2K5kr3: check strict_mode=0 [ OK ] # 13.01 [+0.70] # 13.01 [+0.00] Tests passed: 37 # 13.01 [+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__->