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.43 [+1.43] # 1.43 [+0.00] ################################################################################ # 1.43 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.43 [+0.00] ################################################################################ # 1.69 [+0.26] name: vrf # 1.69 [+0.00] filename: (builtin) # 1.70 [+0.01] version: 1.1 # 1.70 [+0.00] alias: rtnl-link-vrf # 1.70 [+0.00] license: GPL # 1.70 [+0.00] file: drivers/net/vrf # 1.70 [+0.00] description: Device driver to instantiate VRF domains # 1.71 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.84 [+0.13] # 1.84 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.08 [+0.24] # 2.08 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.31 [+0.23] # 2.31 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.48 [+0.16] # 2.48 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.57 [+0.09] # 2.57 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.83 [+0.26] # 2.83 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.92 [+0.08] # 2.92 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 3.16 [+0.25] # 3.16 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 3.32 [+0.16] # 3.32 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 3.41 [+0.08] # 3.41 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.56 [+0.16] # 3.56 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.64 [+0.08] # 3.64 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.86 [+0.22] # 3.86 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 4.02 [+0.16] # 4.02 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 4.02 [+0.00] # 4.02 [+0.00] ################################################################################ # 4.02 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 4.03 [+0.00] ################################################################################ # 4.23 [+0.21] name: vrf # 4.23 [+0.00] filename: (builtin) # 4.24 [+0.01] version: 1.1 # 4.24 [+0.00] alias: rtnl-link-vrf # 4.25 [+0.00] license: GPL # 4.25 [+0.00] file: drivers/net/vrf # 4.25 [+0.00] description: Device driver to instantiate VRF domains # 4.25 [+0.00] author: Shrijeet Mukherjee, David Ahern # 4.45 [+0.20] # 4.45 [+0.00] TEST: testns-j3FI2H: net.vrf.strict_mode is available [ OK ] # 4.76 [+0.31] # 4.76 [+0.00] TEST: testns-j3FI2H: strict_mode=0 by default, 0 vrfs [ OK ] # 4.90 [+0.14] # 4.90 [+0.00] TEST: testns-j3FI2H: enable strict_mode (=1) [ OK ] # 5.13 [+0.23] # 5.13 [+0.00] TEST: testns-j3FI2H: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 5.29 [+0.16] # 5.29 [+0.00] TEST: testns-j3FI2H: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 5.57 [+0.27] # 5.57 [+0.00] TEST: testns-j3FI2H: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.84 [+0.27] # 5.84 [+0.00] TEST: testns-j3FI2H: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 6.01 [+0.17] # 6.01 [+0.00] TEST: testns-j3FI2H: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 6.16 [+0.15] # 6.16 [+0.00] TEST: testns-j3FI2H: disable strict_mode (=0) [ OK ] # 6.37 [+0.21] # 6.37 [+0.00] TEST: testns-j3FI2H: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 6.56 [+0.20] # 6.56 [+0.00] TEST: testns-j3FI2H: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 6.57 [+0.00] # 6.57 [+0.00] ################################################################################ # 6.57 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 6.57 [+0.00] ################################################################################ # 6.70 [+0.13] # 6.70 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.90 [+0.20] # 6.90 [+0.00] TEST: testns-j3FI2H: check strict_mode=0 [ OK ] # 7.05 [+0.15] # 7.05 [+0.00] TEST: testns-j3FI2H: remove vrf vrf101 [ OK ] # 7.19 [+0.14] # 7.19 [+0.00] TEST: testns-j3FI2H: remove vrf vrf102 [ OK ] # 7.27 [+0.08] # 7.27 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.41 [+0.14] # 7.41 [+0.00] TEST: testns-j3FI2H: enable strict_mode (=1) [ OK ] # 7.48 [+0.07] # 7.48 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.55 [+0.07] # 7.55 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.70 [+0.15] # 7.70 [+0.00] TEST: testns-j3FI2H: disable strict_mode (=0) [ OK ] # 7.84 [+0.14] # 7.84 [+0.00] TEST: testns-j3FI2H: disable strict_mode (=0) [ OK ] # 7.98 [+0.13] # 7.98 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 8.18 [+0.20] # 8.18 [+0.00] TEST: testns-j3FI2H: check strict_mode=0 [ OK ] # 8.82 [+0.64] # 8.82 [+0.00] Tests passed: 37 # 8.82 [+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__->