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.69 [+2.69] # 2.69 [+0.00] ################################################################################ # 2.70 [+0.01] TEST SECTION: VRF strict_mode test on init network namespace # 2.70 [+0.00] ################################################################################ # 3.07 [+0.37] name: vrf # 3.07 [+0.00] filename: (builtin) # 6.45 [+3.37] version: 1.1 # 6.45 [+0.00] alias: rtnl-link-vrf # 6.45 [+0.00] license: GPL # 6.45 [+0.00] file: drivers/net/vrf # 6.45 [+0.00] description: Device driver to instantiate VRF domains # 6.46 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.72 [+0.27] # 6.72 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.16 [+0.44] # 7.16 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.48 [+0.32] # 7.48 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.80 [+0.32] # 7.80 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.96 [+0.16] # 7.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.32 [+0.36] # 8.32 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.47 [+0.16] # 8.47 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.80 [+0.33] # 8.80 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.13 [+0.33] # 9.13 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.29 [+0.16] # 9.29 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.53 [+0.24] # 9.53 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.68 [+0.15] # 9.68 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.99 [+0.31] # 9.99 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.32 [+0.32] # 10.32 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.32 [+0.00] # 10.32 [+0.00] ################################################################################ # 10.32 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.32 [+0.00] ################################################################################ # 10.68 [+0.36] name: vrf # 10.68 [+0.00] filename: (builtin) # 14.11 [+3.43] version: 1.1 # 14.11 [+0.00] alias: rtnl-link-vrf # 14.11 [+0.00] license: GPL # 14.11 [+0.00] file: drivers/net/vrf # 14.11 [+0.00] description: Device driver to instantiate VRF domains # 14.11 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.55 [+0.44] # 14.55 [+0.00] TEST: testns-fuVoI3: net.vrf.strict_mode is available [ OK ] # 15.12 [+0.57] # 15.12 [+0.00] TEST: testns-fuVoI3: strict_mode=0 by default, 0 vrfs [ OK ] # 15.42 [+0.30] # 15.42 [+0.00] TEST: testns-fuVoI3: enable strict_mode (=1) [ OK ] # 15.76 [+0.34] # 15.76 [+0.00] TEST: testns-fuVoI3: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.10 [+0.34] # 16.10 [+0.00] TEST: testns-fuVoI3: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.49 [+0.39] # 16.49 [+0.00] TEST: testns-fuVoI3: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.85 [+0.36] # 16.85 [+0.00] TEST: testns-fuVoI3: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.19 [+0.33] # 17.19 [+0.00] TEST: testns-fuVoI3: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.50 [+0.31] # 17.50 [+0.00] TEST: testns-fuVoI3: disable strict_mode (=0) [ OK ] # 17.85 [+0.35] # 17.85 [+0.00] TEST: testns-fuVoI3: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.18 [+0.33] # 18.18 [+0.00] TEST: testns-fuVoI3: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.19 [+0.00] # 18.19 [+0.00] ################################################################################ # 18.19 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.19 [+0.00] ################################################################################ # 18.44 [+0.25] # 18.44 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.85 [+0.42] # 18.85 [+0.00] TEST: testns-fuVoI3: check strict_mode=0 [ OK ] # 19.09 [+0.24] # 19.09 [+0.00] TEST: testns-fuVoI3: remove vrf vrf101 [ OK ] # 19.33 [+0.24] # 19.33 [+0.00] TEST: testns-fuVoI3: remove vrf vrf102 [ OK ] # 19.46 [+0.13] # 19.46 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.79 [+0.33] # 19.79 [+0.00] TEST: testns-fuVoI3: enable strict_mode (=1) [ OK ] # 19.93 [+0.14] # 19.93 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.10 [+0.17] # 20.10 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.44 [+0.35] # 20.44 [+0.00] TEST: testns-fuVoI3: disable strict_mode (=0) [ OK ] # 20.79 [+0.34] # 20.79 [+0.00] TEST: testns-fuVoI3: disable strict_mode (=0) [ OK ] # 21.04 [+0.25] # 21.04 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.46 [+0.42] # 21.46 [+0.00] TEST: testns-fuVoI3: check strict_mode=0 [ OK ] # 22.45 [+0.99] # 22.45 [+0.00] Tests passed: 37 # 22.45 [+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__->