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.90 [+2.90] # 2.90 [+0.00] ################################################################################ # 2.91 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.91 [+0.00] ################################################################################ # 3.29 [+0.38] name: vrf # 3.30 [+0.00] filename: (builtin) # 7.12 [+3.82] version: 1.1 # 7.12 [+0.00] alias: rtnl-link-vrf # 7.12 [+0.00] license: GPL # 7.12 [+0.00] file: drivers/net/vrf # 7.12 [+0.00] description: Device driver to instantiate VRF domains # 7.12 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.38 [+0.25] # 7.38 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.81 [+0.44] # 7.81 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 8.19 [+0.37] # 8.19 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.54 [+0.35] # 8.54 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.71 [+0.17] # 8.71 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.06 [+0.35] # 9.06 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.24 [+0.18] # 9.24 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.56 [+0.33] # 9.56 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.87 [+0.30] # 9.87 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 10.02 [+0.15] # 10.02 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.24 [+0.22] # 10.25 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.41 [+0.16] # 10.41 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.71 [+0.30] # 10.71 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 11.04 [+0.33] # 11.04 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 11.05 [+0.00] # 11.05 [+0.00] ################################################################################ # 11.05 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 11.05 [+0.00] ################################################################################ # 11.37 [+0.32] name: vrf # 11.37 [+0.00] filename: (builtin) # 14.90 [+3.53] version: 1.1 # 14.90 [+0.00] alias: rtnl-link-vrf # 14.91 [+0.00] license: GPL # 14.91 [+0.00] file: drivers/net/vrf # 14.91 [+0.00] description: Device driver to instantiate VRF domains # 14.91 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.35 [+0.44] # 15.35 [+0.00] TEST: testns-02FsOs: net.vrf.strict_mode is available [ OK ] # 15.96 [+0.61] # 15.96 [+0.00] TEST: testns-02FsOs: strict_mode=0 by default, 0 vrfs [ OK ] # 16.27 [+0.31] # 16.27 [+0.00] TEST: testns-02FsOs: enable strict_mode (=1) [ OK ] # 16.60 [+0.33] # 16.60 [+0.00] TEST: testns-02FsOs: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.95 [+0.34] # 16.95 [+0.00] TEST: testns-02FsOs: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.35 [+0.40] # 17.35 [+0.00] TEST: testns-02FsOs: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.72 [+0.37] # 17.72 [+0.00] TEST: testns-02FsOs: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 18.05 [+0.34] # 18.05 [+0.00] TEST: testns-02FsOs: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.37 [+0.31] # 18.37 [+0.00] TEST: testns-02FsOs: disable strict_mode (=0) [ OK ] # 18.71 [+0.34] # 18.71 [+0.00] TEST: testns-02FsOs: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 19.04 [+0.33] # 19.04 [+0.00] TEST: testns-02FsOs: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 19.04 [+0.00] # 19.04 [+0.00] ################################################################################ # 19.05 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 19.05 [+0.00] ################################################################################ # 19.28 [+0.23] # 19.28 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.70 [+0.42] # 19.70 [+0.00] TEST: testns-02FsOs: check strict_mode=0 [ OK ] # 19.93 [+0.23] # 19.93 [+0.00] TEST: testns-02FsOs: remove vrf vrf101 [ OK ] # 20.15 [+0.22] # 20.15 [+0.00] TEST: testns-02FsOs: remove vrf vrf102 [ OK ] # 20.31 [+0.16] # 20.31 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.62 [+0.30] # 20.62 [+0.00] TEST: testns-02FsOs: enable strict_mode (=1) [ OK ] # 20.77 [+0.15] # 20.77 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.93 [+0.16] # 20.93 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.24 [+0.31] # 21.24 [+0.00] TEST: testns-02FsOs: disable strict_mode (=0) [ OK ] # 21.56 [+0.32] # 21.56 [+0.00] TEST: testns-02FsOs: disable strict_mode (=0) [ OK ] # 21.83 [+0.27] # 21.83 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.26 [+0.43] # 22.26 [+0.00] TEST: testns-02FsOs: check strict_mode=0 [ OK ] # 23.26 [+1.00] # 23.26 [+0.00] Tests passed: 37 # 23.26 [+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__->