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 # 3.05 [+3.05] # 3.05 [+0.00] ################################################################################ # 3.06 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 3.06 [+0.00] ################################################################################ # 3.45 [+0.39] name: vrf # 3.45 [+0.00] filename: (builtin) # 7.10 [+3.65] version: 1.1 # 7.10 [+0.00] alias: rtnl-link-vrf # 7.10 [+0.00] license: GPL # 7.10 [+0.00] file: drivers/net/vrf # 7.10 [+0.00] description: Device driver to instantiate VRF domains # 7.11 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.39 [+0.28] # 7.39 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.85 [+0.46] # 7.85 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 8.18 [+0.33] # 8.18 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.50 [+0.31] # 8.50 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.67 [+0.18] # 8.67 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.06 [+0.39] # 9.06 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.22 [+0.16] # 9.22 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.54 [+0.32] # 9.54 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.89 [+0.35] # 9.89 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 10.05 [+0.16] # 10.05 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.30 [+0.25] # 10.30 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.46 [+0.17] # 10.46 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.83 [+0.36] # 10.83 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 11.17 [+0.34] # 11.17 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 11.17 [+0.00] # 11.18 [+0.00] ################################################################################ # 11.18 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 11.18 [+0.00] ################################################################################ # 11.56 [+0.38] name: vrf # 11.56 [+0.00] filename: (builtin) # 15.22 [+3.66] version: 1.1 # 15.22 [+0.00] alias: rtnl-link-vrf # 15.22 [+0.00] license: GPL # 15.22 [+0.00] file: drivers/net/vrf # 15.22 [+0.00] description: Device driver to instantiate VRF domains # 15.23 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.69 [+0.46] # 15.69 [+0.00] TEST: testns-FUQAyD: net.vrf.strict_mode is available [ OK ] # 16.29 [+0.60] # 16.29 [+0.00] TEST: testns-FUQAyD: strict_mode=0 by default, 0 vrfs [ OK ] # 16.61 [+0.32] # 16.61 [+0.00] TEST: testns-FUQAyD: enable strict_mode (=1) [ OK ] # 16.92 [+0.32] # 16.92 [+0.00] TEST: testns-FUQAyD: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 17.27 [+0.35] # 17.27 [+0.00] TEST: testns-FUQAyD: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.67 [+0.39] # 17.67 [+0.00] TEST: testns-FUQAyD: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 18.04 [+0.37] # 18.04 [+0.00] TEST: testns-FUQAyD: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 18.37 [+0.33] # 18.37 [+0.00] TEST: testns-FUQAyD: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.71 [+0.34] # 18.71 [+0.00] TEST: testns-FUQAyD: disable strict_mode (=0) [ OK ] # 19.06 [+0.35] # 19.06 [+0.00] TEST: testns-FUQAyD: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 19.39 [+0.32] # 19.39 [+0.00] TEST: testns-FUQAyD: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 19.39 [+0.00] # 19.39 [+0.00] ################################################################################ # 19.39 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 19.40 [+0.00] ################################################################################ # 19.67 [+0.27] # 19.67 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.08 [+0.42] # 20.08 [+0.00] TEST: testns-FUQAyD: check strict_mode=0 [ OK ] # 20.31 [+0.23] # 20.31 [+0.00] TEST: testns-FUQAyD: remove vrf vrf101 [ OK ] # 20.52 [+0.20] # 20.52 [+0.00] TEST: testns-FUQAyD: remove vrf vrf102 [ OK ] # 20.69 [+0.17] # 20.69 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 21.00 [+0.31] # 21.00 [+0.00] TEST: testns-FUQAyD: enable strict_mode (=1) [ OK ] # 21.16 [+0.17] # 21.16 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.33 [+0.17] # 21.33 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.66 [+0.33] # 21.66 [+0.00] TEST: testns-FUQAyD: disable strict_mode (=0) [ OK ] # 21.97 [+0.31] # 21.97 [+0.00] TEST: testns-FUQAyD: disable strict_mode (=0) [ OK ] # 22.24 [+0.27] # 22.24 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.67 [+0.43] # 22.67 [+0.00] TEST: testns-FUQAyD: check strict_mode=0 [ OK ] # 23.65 [+0.98] # 23.65 [+0.00] Tests passed: 37 # 23.65 [+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__->