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.72 [+2.72] # 2.72 [+0.00] ################################################################################ # 2.72 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.73 [+0.00] ################################################################################ # 3.06 [+0.34] name: vrf # 3.06 [+0.00] filename: (builtin) # 6.48 [+3.42] version: 1.1 # 6.48 [+0.00] alias: rtnl-link-vrf # 6.48 [+0.00] license: GPL # 6.48 [+0.00] file: drivers/net/vrf # 6.48 [+0.00] description: Device driver to instantiate VRF domains # 6.48 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.77 [+0.28] # 6.77 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.20 [+0.43] # 7.20 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.53 [+0.33] # 7.53 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.83 [+0.30] # 7.83 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.98 [+0.15] # 7.98 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.35 [+0.37] # 8.35 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.50 [+0.15] # 8.50 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.81 [+0.31] # 8.81 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.13 [+0.32] # 9.13 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.28 [+0.14] # 9.28 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.51 [+0.23] # 9.51 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.66 [+0.15] # 9.66 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.99 [+0.34] # 10.00 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.35 [+0.36] # 10.35 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.35 [+0.00] # 10.35 [+0.00] ################################################################################ # 10.36 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.36 [+0.00] ################################################################################ # 10.75 [+0.39] name: vrf # 10.75 [+0.00] filename: (builtin) # 14.17 [+3.42] version: 1.1 # 14.17 [+0.00] alias: rtnl-link-vrf # 14.17 [+0.00] license: GPL # 14.17 [+0.00] file: drivers/net/vrf # 14.17 [+0.00] description: Device driver to instantiate VRF domains # 14.18 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.62 [+0.44] # 14.62 [+0.00] TEST: testns-xAu0pc: net.vrf.strict_mode is available [ OK ] # 15.20 [+0.58] # 15.20 [+0.00] TEST: testns-xAu0pc: strict_mode=0 by default, 0 vrfs [ OK ] # 15.52 [+0.33] # 15.52 [+0.00] TEST: testns-xAu0pc: enable strict_mode (=1) [ OK ] # 15.85 [+0.33] # 15.85 [+0.00] TEST: testns-xAu0pc: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.19 [+0.34] # 16.19 [+0.00] TEST: testns-xAu0pc: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.55 [+0.36] # 16.55 [+0.00] TEST: testns-xAu0pc: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.92 [+0.37] # 16.92 [+0.00] TEST: testns-xAu0pc: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.24 [+0.32] # 17.24 [+0.00] TEST: testns-xAu0pc: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.55 [+0.31] # 17.55 [+0.00] TEST: testns-xAu0pc: disable strict_mode (=0) [ OK ] # 17.88 [+0.33] # 17.88 [+0.00] TEST: testns-xAu0pc: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.20 [+0.32] # 18.20 [+0.00] TEST: testns-xAu0pc: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.20 [+0.00] # 18.20 [+0.00] ################################################################################ # 18.20 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.21 [+0.00] ################################################################################ # 18.49 [+0.29] # 18.49 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.91 [+0.41] # 18.91 [+0.00] TEST: testns-xAu0pc: check strict_mode=0 [ OK ] # 19.12 [+0.22] # 19.12 [+0.00] TEST: testns-xAu0pc: remove vrf vrf101 [ OK ] # 19.35 [+0.23] # 19.35 [+0.00] TEST: testns-xAu0pc: remove vrf vrf102 [ OK ] # 19.50 [+0.15] # 19.50 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.81 [+0.31] # 19.81 [+0.00] TEST: testns-xAu0pc: enable strict_mode (=1) [ OK ] # 19.96 [+0.16] # 19.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.12 [+0.15] # 20.12 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.43 [+0.31] # 20.43 [+0.00] TEST: testns-xAu0pc: disable strict_mode (=0) [ OK ] # 20.73 [+0.30] # 20.73 [+0.00] TEST: testns-xAu0pc: disable strict_mode (=0) [ OK ] # 21.00 [+0.26] # 21.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.40 [+0.40] # 21.40 [+0.00] TEST: testns-xAu0pc: check strict_mode=0 [ OK ] # 22.40 [+1.00] # 22.40 [+0.00] Tests passed: 37 # 22.40 [+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__->