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.35 [+0.26] name: vrf # 2.35 [+0.00] filename: (builtin) # 2.37 [+0.02] 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.54 [+0.16] # 2.54 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.89 [+0.35] # 2.89 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.17 [+0.28] # 3.17 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.41 [+0.24] # 3.41 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.51 [+0.10] # 3.51 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.88 [+0.36] # 3.88 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.98 [+0.10] # 3.98 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.27 [+0.29] # 4.27 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.49 [+0.23] # 4.49 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.59 [+0.10] # 4.59 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.78 [+0.18] # 4.78 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.88 [+0.10] # 4.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.16 [+0.28] # 5.16 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.41 [+0.25] # 5.41 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.41 [+0.00] # 5.41 [+0.00] ################################################################################ # 5.42 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.42 [+0.00] ################################################################################ # 5.66 [+0.24] name: vrf # 5.66 [+0.00] filename: (builtin) # 5.67 [+0.01] version: 1.1 # 5.67 [+0.00] alias: rtnl-link-vrf # 5.68 [+0.00] license: GPL # 5.68 [+0.00] file: drivers/net/vrf # 5.68 [+0.00] description: Device driver to instantiate VRF domains # 5.68 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.94 [+0.26] # 5.94 [+0.00] TEST: testns-3I3HDS: net.vrf.strict_mode is available [ OK ] # 6.35 [+0.41] # 6.35 [+0.00] TEST: testns-3I3HDS: strict_mode=0 by default, 0 vrfs [ OK ] # 6.55 [+0.20] # 6.55 [+0.00] TEST: testns-3I3HDS: enable strict_mode (=1) [ OK ] # 6.84 [+0.29] # 6.84 [+0.00] TEST: testns-3I3HDS: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.07 [+0.24] # 7.07 [+0.00] TEST: testns-3I3HDS: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.43 [+0.35] # 7.43 [+0.00] TEST: testns-3I3HDS: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.77 [+0.34] # 7.77 [+0.00] TEST: testns-3I3HDS: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.07 [+0.30] # 8.07 [+0.00] TEST: testns-3I3HDS: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.26 [+0.19] # 8.26 [+0.00] TEST: testns-3I3HDS: disable strict_mode (=0) [ OK ] # 8.54 [+0.28] # 8.54 [+0.00] TEST: testns-3I3HDS: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.81 [+0.27] # 8.81 [+0.00] TEST: testns-3I3HDS: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 8.81 [+0.00] # 8.81 [+0.00] ################################################################################ # 8.81 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 8.82 [+0.00] ################################################################################ # 8.99 [+0.17] # 8.99 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.28 [+0.29] # 9.28 [+0.00] TEST: testns-3I3HDS: check strict_mode=0 [ OK ] # 9.47 [+0.19] # 9.47 [+0.00] TEST: testns-3I3HDS: remove vrf vrf101 [ OK ] # 9.68 [+0.20] # 9.68 [+0.00] TEST: testns-3I3HDS: remove vrf vrf102 [ OK ] # 9.83 [+0.15] # 9.83 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.02 [+0.19] # 10.02 [+0.00] TEST: testns-3I3HDS: enable strict_mode (=1) [ OK ] # 10.12 [+0.10] # 10.12 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.22 [+0.09] # 10.22 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.43 [+0.21] # 10.43 [+0.00] TEST: testns-3I3HDS: disable strict_mode (=0) [ OK ] # 10.63 [+0.21] # 10.63 [+0.00] TEST: testns-3I3HDS: disable strict_mode (=0) [ OK ] # 10.81 [+0.17] # 10.81 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.07 [+0.26] # 11.07 [+0.00] TEST: testns-3I3HDS: check strict_mode=0 [ OK ] # 11.88 [+0.81] # 11.88 [+0.00] Tests passed: 37 # 11.88 [+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__->