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.08 [+3.08] # 3.08 [+0.00] ################################################################################ # 3.08 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 3.09 [+0.00] ################################################################################ # 3.51 [+0.43] name: vrf # 3.51 [+0.00] filename: (builtin) # 7.11 [+3.59] version: 1.1 # 7.11 [+0.00] alias: rtnl-link-vrf # 7.11 [+0.00] license: GPL # 7.11 [+0.00] file: drivers/net/vrf # 7.11 [+0.00] description: Device driver to instantiate VRF domains # 7.11 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.47 [+0.36] # 7.47 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.96 [+0.48] # 7.96 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 8.32 [+0.36] # 8.32 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.65 [+0.33] # 8.65 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.83 [+0.19] # 8.83 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.24 [+0.40] # 9.24 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.42 [+0.18] # 9.42 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.77 [+0.36] # 9.77 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 10.15 [+0.38] # 10.15 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 10.32 [+0.17] # 10.32 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.58 [+0.25] # 10.58 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.75 [+0.17] # 10.75 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 11.11 [+0.36] # 11.11 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 11.50 [+0.39] # 11.50 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 11.50 [+0.00] # 11.50 [+0.00] ################################################################################ # 11.50 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 11.50 [+0.00] ################################################################################ # 11.84 [+0.33] name: vrf # 11.84 [+0.00] filename: (builtin) # 15.66 [+3.83] version: 1.1 # 15.66 [+0.00] alias: rtnl-link-vrf # 15.67 [+0.00] license: GPL # 15.67 [+0.00] file: drivers/net/vrf # 15.67 [+0.00] description: Device driver to instantiate VRF domains # 15.67 [+0.00] author: Shrijeet Mukherjee, David Ahern # 16.20 [+0.53] # 16.20 [+0.00] TEST: testns-ZEWUbZ: net.vrf.strict_mode is available [ OK ] # 16.88 [+0.68] # 16.88 [+0.00] TEST: testns-ZEWUbZ: strict_mode=0 by default, 0 vrfs [ OK ] # 17.22 [+0.34] # 17.22 [+0.00] TEST: testns-ZEWUbZ: enable strict_mode (=1) [ OK ] # 17.56 [+0.33] # 17.56 [+0.00] TEST: testns-ZEWUbZ: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 17.93 [+0.37] # 17.93 [+0.00] TEST: testns-ZEWUbZ: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 18.32 [+0.39] # 18.32 [+0.00] TEST: testns-ZEWUbZ: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 18.75 [+0.43] # 18.75 [+0.00] TEST: testns-ZEWUbZ: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 19.12 [+0.37] # 19.12 [+0.00] TEST: testns-ZEWUbZ: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 19.47 [+0.35] # 19.47 [+0.00] TEST: testns-ZEWUbZ: disable strict_mode (=0) [ OK ] # 19.83 [+0.36] # 19.83 [+0.00] TEST: testns-ZEWUbZ: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 20.16 [+0.33] # 20.16 [+0.00] TEST: testns-ZEWUbZ: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 20.16 [+0.00] # 20.16 [+0.00] ################################################################################ # 20.16 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 20.17 [+0.00] ################################################################################ # 20.48 [+0.32] # 20.48 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.95 [+0.47] # 20.95 [+0.00] TEST: testns-ZEWUbZ: check strict_mode=0 [ OK ] # 21.20 [+0.24] # 21.20 [+0.00] TEST: testns-ZEWUbZ: remove vrf vrf101 [ OK ] # 21.43 [+0.24] # 21.43 [+0.00] TEST: testns-ZEWUbZ: remove vrf vrf102 [ OK ] # 21.60 [+0.17] # 21.60 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 21.95 [+0.35] # 21.95 [+0.00] TEST: testns-ZEWUbZ: enable strict_mode (=1) [ OK ] # 22.16 [+0.21] # 22.16 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 22.36 [+0.20] # 22.36 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 22.72 [+0.36] # 22.72 [+0.00] TEST: testns-ZEWUbZ: disable strict_mode (=0) [ OK ] # 23.07 [+0.34] # 23.07 [+0.00] TEST: testns-ZEWUbZ: disable strict_mode (=0) [ OK ] # 23.34 [+0.27] # 23.34 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 23.79 [+0.45] # 23.79 [+0.00] TEST: testns-ZEWUbZ: check strict_mode=0 [ OK ] # 24.90 [+1.11] # 24.90 [+0.00] Tests passed: 37 # 24.90 [+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__->