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 # 2.33 [+2.33] # 2.33 [+0.00] ################################################################################ # 2.34 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.34 [+0.00] ################################################################################ # 2.67 [+0.33] name: vrf # 2.67 [+0.00] filename: (builtin) # 5.57 [+2.90] version: 1.1 # 5.57 [+0.00] alias: rtnl-link-vrf # 5.57 [+0.00] license: GPL # 5.57 [+0.00] file: drivers/net/vrf # 5.57 [+0.00] description: Device driver to instantiate VRF domains # 5.58 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.87 [+0.29] # 5.87 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.23 [+0.36] # 6.23 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.56 [+0.33] # 6.56 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.87 [+0.30] # 6.87 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.02 [+0.16] # 7.02 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.38 [+0.35] # 7.38 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.54 [+0.16] # 7.54 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.82 [+0.28] # 7.82 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.13 [+0.31] # 8.13 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.28 [+0.15] # 8.28 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.50 [+0.22] # 8.50 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.64 [+0.15] # 8.64 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.95 [+0.30] # 8.95 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.25 [+0.31] # 9.25 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.26 [+0.00] # 9.26 [+0.00] ################################################################################ # 9.26 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.26 [+0.00] ################################################################################ # 9.57 [+0.31] name: vrf # 9.57 [+0.00] filename: (builtin) # 12.51 [+2.94] version: 1.1 # 12.51 [+0.00] alias: rtnl-link-vrf # 12.51 [+0.00] license: GPL # 12.51 [+0.00] file: drivers/net/vrf # 12.51 [+0.00] description: Device driver to instantiate VRF domains # 12.52 [+0.00] author: Shrijeet Mukherjee, David Ahern # 12.92 [+0.40] # 12.92 [+0.00] TEST: testns-Ywnnim: net.vrf.strict_mode is available [ OK ] # 13.45 [+0.53] # 13.45 [+0.00] TEST: testns-Ywnnim: strict_mode=0 by default, 0 vrfs [ OK ] # 13.74 [+0.29] # 13.74 [+0.00] TEST: testns-Ywnnim: enable strict_mode (=1) [ OK ] # 14.05 [+0.31] # 14.05 [+0.00] TEST: testns-Ywnnim: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.37 [+0.32] # 14.37 [+0.00] TEST: testns-Ywnnim: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.74 [+0.36] # 14.74 [+0.00] TEST: testns-Ywnnim: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.09 [+0.36] # 15.09 [+0.00] TEST: testns-Ywnnim: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.39 [+0.30] # 15.39 [+0.00] TEST: testns-Ywnnim: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.68 [+0.29] # 15.68 [+0.00] TEST: testns-Ywnnim: disable strict_mode (=0) [ OK ] # 15.99 [+0.31] # 15.99 [+0.00] TEST: testns-Ywnnim: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.30 [+0.31] # 16.30 [+0.00] TEST: testns-Ywnnim: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.30 [+0.00] # 16.30 [+0.00] ################################################################################ # 16.31 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.31 [+0.00] ################################################################################ # 16.54 [+0.23] # 16.54 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 16.90 [+0.35] # 16.90 [+0.00] TEST: testns-Ywnnim: check strict_mode=0 [ OK ] # 17.11 [+0.21] # 17.11 [+0.00] TEST: testns-Ywnnim: remove vrf vrf101 [ OK ] # 17.29 [+0.18] # 17.29 [+0.00] TEST: testns-Ywnnim: remove vrf vrf102 [ OK ] # 17.43 [+0.14] # 17.43 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.72 [+0.29] # 17.72 [+0.00] TEST: testns-Ywnnim: enable strict_mode (=1) [ OK ] # 17.88 [+0.15] # 17.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.02 [+0.15] # 18.02 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.32 [+0.29] # 18.32 [+0.00] TEST: testns-Ywnnim: disable strict_mode (=0) [ OK ] # 18.59 [+0.27] # 18.59 [+0.00] TEST: testns-Ywnnim: disable strict_mode (=0) [ OK ] # 18.83 [+0.24] # 18.83 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.23 [+0.40] # 19.23 [+0.00] TEST: testns-Ywnnim: check strict_mode=0 [ OK ] # 20.20 [+0.97] # 20.20 [+0.00] Tests passed: 37 # 20.21 [+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__->