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/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' 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.08 [+2.08] # 2.08 [+0.00] ################################################################################ # 2.09 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.09 [+0.00] ################################################################################ # 2.36 [+0.27] name: vrf # 2.36 [+0.00] filename: (builtin) # 2.37 [+0.01] version: 1.1 # 2.37 [+0.00] alias: rtnl-link-vrf # 2.37 [+0.00] license: GPL # 2.37 [+0.00] file: drivers/net/vrf # 2.37 [+0.00] description: Device driver to instantiate VRF domains # 2.38 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.55 [+0.17] # 2.55 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.85 [+0.30] # 2.85 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.15 [+0.30] # 3.15 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.38 [+0.23] # 3.38 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.47 [+0.10] # 3.47 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.83 [+0.36] # 3.83 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.93 [+0.10] # 3.93 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.19 [+0.26] # 4.19 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.40 [+0.21] # 4.40 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.50 [+0.10] # 4.50 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.65 [+0.15] # 4.65 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.75 [+0.10] # 4.75 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.04 [+0.29] # 5.04 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.28 [+0.24] # 5.28 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.28 [+0.00] # 5.28 [+0.00] ################################################################################ # 5.29 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.29 [+0.00] ################################################################################ # 5.58 [+0.29] name: vrf # 5.58 [+0.00] filename: (builtin) # 5.59 [+0.01] version: 1.1 # 5.59 [+0.00] alias: rtnl-link-vrf # 5.59 [+0.00] license: GPL # 5.59 [+0.00] file: drivers/net/vrf # 5.59 [+0.00] description: Device driver to instantiate VRF domains # 5.60 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.86 [+0.26] # 5.86 [+0.00] TEST: testns-MTlR4Q: net.vrf.strict_mode is available [ OK ] # 6.25 [+0.40] # 6.25 [+0.00] TEST: testns-MTlR4Q: strict_mode=0 by default, 0 vrfs [ OK ] # 6.45 [+0.20] # 6.45 [+0.00] TEST: testns-MTlR4Q: enable strict_mode (=1) [ OK ] # 6.75 [+0.30] # 6.75 [+0.00] TEST: testns-MTlR4Q: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.97 [+0.21] # 6.97 [+0.00] TEST: testns-MTlR4Q: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.32 [+0.35] # 7.32 [+0.00] TEST: testns-MTlR4Q: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.63 [+0.31] # 7.63 [+0.00] TEST: testns-MTlR4Q: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 7.90 [+0.27] # 7.90 [+0.00] TEST: testns-MTlR4Q: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.09 [+0.19] # 8.09 [+0.00] TEST: testns-MTlR4Q: disable strict_mode (=0) [ OK ] # 8.35 [+0.26] # 8.35 [+0.00] TEST: testns-MTlR4Q: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.63 [+0.28] # 8.63 [+0.00] TEST: testns-MTlR4Q: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 8.63 [+0.00] # 8.63 [+0.00] ################################################################################ # 8.64 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 8.64 [+0.00] ################################################################################ # 8.81 [+0.18] # 8.81 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.09 [+0.28] # 9.09 [+0.00] TEST: testns-MTlR4Q: check strict_mode=0 [ OK ] # 9.24 [+0.15] # 9.24 [+0.00] TEST: testns-MTlR4Q: remove vrf vrf101 [ OK ] # 9.40 [+0.16] # 9.40 [+0.00] TEST: testns-MTlR4Q: remove vrf vrf102 [ OK ] # 9.50 [+0.09] # 9.50 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.69 [+0.19] # 9.69 [+0.00] TEST: testns-MTlR4Q: enable strict_mode (=1) [ OK ] # 9.80 [+0.10] # 9.80 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.89 [+0.10] # 9.89 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.09 [+0.19] # 10.09 [+0.00] TEST: testns-MTlR4Q: disable strict_mode (=0) [ OK ] # 10.27 [+0.18] # 10.27 [+0.00] TEST: testns-MTlR4Q: disable strict_mode (=0) [ OK ] # 10.44 [+0.17] # 10.44 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.72 [+0.29] # 10.72 [+0.00] TEST: testns-MTlR4Q: check strict_mode=0 [ OK ] # 11.41 [+0.68] # 11.41 [+0.00] Tests passed: 37 # 11.41 [+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__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->