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' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 1.20 [+1.20] # 1.20 [+0.00] ################################################################################ # 1.21 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.21 [+0.00] ################################################################################ # 1.40 [+0.18] name: vrf # 1.40 [+0.00] filename: (builtin) # 1.41 [+0.01] version: 1.1 # 1.41 [+0.00] alias: rtnl-link-vrf # 1.41 [+0.00] license: GPL # 1.41 [+0.00] file: drivers/net/vrf # 1.41 [+0.00] description: Device driver to instantiate VRF domains # 1.41 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.54 [+0.13] # 1.54 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 1.75 [+0.21] # 1.75 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 1.95 [+0.20] # 1.95 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.11 [+0.16] # 2.11 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.18 [+0.07] # 2.18 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.42 [+0.24] # 2.42 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.50 [+0.08] # 2.50 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 2.69 [+0.19] # 2.69 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 2.84 [+0.15] # 2.84 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 2.91 [+0.07] # 2.91 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.07 [+0.16] # 3.07 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.14 [+0.07] # 3.14 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.34 [+0.20] # 3.34 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 3.50 [+0.16] # 3.50 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 3.50 [+0.00] # 3.50 [+0.00] ################################################################################ # 3.51 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 3.51 [+0.00] ################################################################################ # 3.69 [+0.19] name: vrf # 3.69 [+0.00] filename: (builtin) # 3.70 [+0.01] version: 1.1 # 3.70 [+0.00] alias: rtnl-link-vrf # 3.70 [+0.00] license: GPL # 3.71 [+0.00] file: drivers/net/vrf # 3.71 [+0.00] description: Device driver to instantiate VRF domains # 3.71 [+0.00] author: Shrijeet Mukherjee, David Ahern # 3.91 [+0.20] # 3.91 [+0.00] TEST: testns-6dG4hL: net.vrf.strict_mode is available [ OK ] # 4.19 [+0.28] # 4.19 [+0.00] TEST: testns-6dG4hL: strict_mode=0 by default, 0 vrfs [ OK ] # 4.33 [+0.14] # 4.33 [+0.00] TEST: testns-6dG4hL: enable strict_mode (=1) [ OK ] # 4.54 [+0.21] # 4.54 [+0.00] TEST: testns-6dG4hL: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.71 [+0.17] # 4.71 [+0.00] TEST: testns-6dG4hL: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 4.93 [+0.23] # 4.93 [+0.00] TEST: testns-6dG4hL: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.17 [+0.24] # 5.17 [+0.00] TEST: testns-6dG4hL: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 5.38 [+0.21] # 5.38 [+0.00] TEST: testns-6dG4hL: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 5.52 [+0.14] # 5.52 [+0.00] TEST: testns-6dG4hL: disable strict_mode (=0) [ OK ] # 5.73 [+0.21] # 5.73 [+0.00] TEST: testns-6dG4hL: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.93 [+0.20] # 5.93 [+0.00] TEST: testns-6dG4hL: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 5.93 [+0.00] # 5.93 [+0.00] ################################################################################ # 5.93 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 5.93 [+0.00] ################################################################################ # 6.05 [+0.12] # 6.05 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.26 [+0.21] # 6.26 [+0.00] TEST: testns-6dG4hL: check strict_mode=0 [ OK ] # 6.40 [+0.14] # 6.40 [+0.00] TEST: testns-6dG4hL: remove vrf vrf101 [ OK ] # 6.54 [+0.14] # 6.54 [+0.00] TEST: testns-6dG4hL: remove vrf vrf102 [ OK ] # 6.61 [+0.07] # 6.61 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 6.74 [+0.13] # 6.74 [+0.00] TEST: testns-6dG4hL: enable strict_mode (=1) [ OK ] # 6.81 [+0.06] # 6.81 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 6.88 [+0.07] # 6.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.02 [+0.14] # 7.02 [+0.00] TEST: testns-6dG4hL: disable strict_mode (=0) [ OK ] # 7.14 [+0.12] # 7.14 [+0.00] TEST: testns-6dG4hL: disable strict_mode (=0) [ OK ] # 7.27 [+0.13] # 7.27 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.45 [+0.18] # 7.45 [+0.00] TEST: testns-6dG4hL: check strict_mode=0 [ OK ] # 8.02 [+0.57] # 8.02 [+0.00] Tests passed: 37 # 8.02 [+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__->