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.80 [+2.80] # 2.80 [+0.00] ################################################################################ # 2.80 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.80 [+0.00] ################################################################################ # 3.18 [+0.38] name: vrf # 3.18 [+0.00] filename: (builtin) # 6.52 [+3.34] version: 1.1 # 6.52 [+0.00] alias: rtnl-link-vrf # 6.52 [+0.00] license: GPL # 6.52 [+0.00] file: drivers/net/vrf # 6.52 [+0.00] description: Device driver to instantiate VRF domains # 6.52 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.83 [+0.30] # 6.83 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.27 [+0.44] # 7.27 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.59 [+0.32] # 7.59 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.91 [+0.31] # 7.91 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.08 [+0.17] # 8.08 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.46 [+0.38] # 8.46 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.63 [+0.18] # 8.63 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.95 [+0.31] # 8.95 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.29 [+0.34] # 9.29 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.45 [+0.16] # 9.45 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.67 [+0.22] # 9.67 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.84 [+0.17] # 9.84 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.15 [+0.31] # 10.15 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.47 [+0.32] # 10.47 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.47 [+0.00] # 10.47 [+0.00] ################################################################################ # 10.47 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.48 [+0.00] ################################################################################ # 10.79 [+0.31] name: vrf # 10.79 [+0.00] filename: (builtin) # 14.22 [+3.44] version: 1.1 # 14.22 [+0.00] alias: rtnl-link-vrf # 14.23 [+0.00] license: GPL # 14.23 [+0.00] file: drivers/net/vrf # 14.23 [+0.00] description: Device driver to instantiate VRF domains # 14.23 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.65 [+0.42] # 14.65 [+0.00] TEST: testns-VejfnM: net.vrf.strict_mode is available [ OK ] # 15.25 [+0.60] # 15.25 [+0.00] TEST: testns-VejfnM: strict_mode=0 by default, 0 vrfs [ OK ] # 15.58 [+0.33] # 15.58 [+0.00] TEST: testns-VejfnM: enable strict_mode (=1) [ OK ] # 15.90 [+0.31] # 15.90 [+0.00] TEST: testns-VejfnM: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.24 [+0.34] # 16.24 [+0.00] TEST: testns-VejfnM: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.63 [+0.39] # 16.63 [+0.00] TEST: testns-VejfnM: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.03 [+0.40] # 17.03 [+0.00] TEST: testns-VejfnM: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.36 [+0.33] # 17.36 [+0.00] TEST: testns-VejfnM: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.69 [+0.33] # 17.69 [+0.00] TEST: testns-VejfnM: disable strict_mode (=0) [ OK ] # 18.00 [+0.31] # 18.00 [+0.00] TEST: testns-VejfnM: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.33 [+0.33] # 18.33 [+0.00] TEST: testns-VejfnM: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.33 [+0.00] # 18.33 [+0.00] ################################################################################ # 18.34 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.34 [+0.00] ################################################################################ # 18.60 [+0.26] # 18.60 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.03 [+0.43] # 19.03 [+0.00] TEST: testns-VejfnM: check strict_mode=0 [ OK ] # 19.26 [+0.23] # 19.26 [+0.00] TEST: testns-VejfnM: remove vrf vrf101 [ OK ] # 19.50 [+0.24] # 19.50 [+0.00] TEST: testns-VejfnM: remove vrf vrf102 [ OK ] # 19.66 [+0.16] # 19.66 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.99 [+0.32] # 19.99 [+0.00] TEST: testns-VejfnM: enable strict_mode (=1) [ OK ] # 20.14 [+0.16] # 20.14 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.32 [+0.17] # 20.32 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.64 [+0.32] # 20.64 [+0.00] TEST: testns-VejfnM: disable strict_mode (=0) [ OK ] # 20.97 [+0.33] # 20.97 [+0.00] TEST: testns-VejfnM: disable strict_mode (=0) [ OK ] # 21.24 [+0.27] # 21.24 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.68 [+0.44] # 21.68 [+0.00] TEST: testns-VejfnM: check strict_mode=0 [ OK ] # 22.71 [+1.02] # 22.71 [+0.00] Tests passed: 37 # 22.71 [+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__->