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.60 [+2.60] # 2.60 [+0.00] ################################################################################ # 2.60 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.60 [+0.00] ################################################################################ # 2.99 [+0.39] name: vrf # 3.00 [+0.00] filename: (builtin) # 3.00 [+0.01] version: 1.1 # 3.01 [+0.00] alias: rtnl-link-vrf # 3.01 [+0.00] license: GPL # 3.01 [+0.00] file: drivers/net/vrf # 3.01 [+0.00] description: Device driver to instantiate VRF domains # 3.01 [+0.00] author: Shrijeet Mukherjee, David Ahern # 3.22 [+0.21] # 3.22 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.56 [+0.34] # 3.56 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.90 [+0.34] # 3.90 [+0.01] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.19 [+0.29] # 4.19 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 4.36 [+0.17] # 4.36 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.77 [+0.41] # 4.78 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.90 [+0.12] # 4.90 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 5.28 [+0.38] # 5.28 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.56 [+0.28] # 5.56 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 5.74 [+0.18] # 5.75 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.95 [+0.20] # 5.95 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 6.07 [+0.12] # 6.07 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 6.47 [+0.40] # 6.47 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 6.85 [+0.39] # 6.86 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 6.86 [+0.00] # 6.86 [+0.00] ################################################################################ # 6.87 [+0.01] TEST SECTION: VRF strict_mode test on testns network namespace # 6.87 [+0.00] ################################################################################ # 7.26 [+0.39] name: vrf # 7.26 [+0.00] filename: (builtin) # 7.28 [+0.02] version: 1.1 # 7.28 [+0.00] alias: rtnl-link-vrf # 7.28 [+0.00] license: GPL # 7.28 [+0.00] file: drivers/net/vrf # 7.28 [+0.00] description: Device driver to instantiate VRF domains # 7.29 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.74 [+0.45] # 7.74 [+0.00] TEST: testns-SN0elR: net.vrf.strict_mode is available [ OK ] # 8.33 [+0.59] # 8.33 [+0.00] TEST: testns-SN0elR: strict_mode=0 by default, 0 vrfs [ OK ] # 8.60 [+0.27] # 8.60 [+0.00] TEST: testns-SN0elR: enable strict_mode (=1) [ OK ] # 9.04 [+0.44] # 9.04 [+0.00] TEST: testns-SN0elR: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 9.37 [+0.33] # 9.37 [+0.00] TEST: testns-SN0elR: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 9.78 [+0.41] # 9.78 [+0.00] TEST: testns-SN0elR: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 10.22 [+0.44] # 10.22 [+0.00] TEST: testns-SN0elR: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 10.64 [+0.42] # 10.64 [+0.00] TEST: testns-SN0elR: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 10.94 [+0.30] # 10.95 [+0.00] TEST: testns-SN0elR: disable strict_mode (=0) [ OK ] # 11.37 [+0.42] # 11.37 [+0.00] TEST: testns-SN0elR: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 11.74 [+0.38] # 11.75 [+0.00] TEST: testns-SN0elR: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 11.75 [+0.00] # 11.75 [+0.00] ################################################################################ # 11.75 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 11.75 [+0.00] ################################################################################ # 12.00 [+0.25] # 12.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 12.38 [+0.38] # 12.38 [+0.00] TEST: testns-SN0elR: check strict_mode=0 [ OK ] # 12.64 [+0.26] # 12.64 [+0.00] TEST: testns-SN0elR: remove vrf vrf101 [ OK ] # 12.83 [+0.19] # 12.83 [+0.00] TEST: testns-SN0elR: remove vrf vrf102 [ OK ] # 13.00 [+0.17] # 13.00 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 13.26 [+0.25] # 13.26 [+0.00] TEST: testns-SN0elR: enable strict_mode (=1) [ OK ] # 13.40 [+0.15] # 13.40 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 13.54 [+0.13] # 13.54 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 13.83 [+0.30] # 13.84 [+0.00] TEST: testns-SN0elR: disable strict_mode (=0) [ OK ] # 14.11 [+0.28] # 14.11 [+0.00] TEST: testns-SN0elR: disable strict_mode (=0) [ OK ] # 14.34 [+0.23] # 14.35 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 14.75 [+0.40] # 14.75 [+0.00] TEST: testns-SN0elR: check strict_mode=0 [ OK ] # 15.64 [+0.90] # 15.64 [+0.00] Tests passed: 37 # 15.64 [+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__->