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.66 [+2.66] # 2.66 [+0.00] ################################################################################ # 2.66 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.67 [+0.00] ################################################################################ # 2.99 [+0.32] name: vrf # 2.99 [+0.00] filename: (builtin) # 6.31 [+3.32] version: 1.1 # 6.31 [+0.00] alias: rtnl-link-vrf # 6.31 [+0.00] license: GPL # 6.31 [+0.00] file: drivers/net/vrf # 6.31 [+0.00] description: Device driver to instantiate VRF domains # 6.32 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.57 [+0.26] # 6.57 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.99 [+0.42] # 6.99 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.33 [+0.34] # 7.33 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.64 [+0.30] # 7.64 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.79 [+0.16] # 7.79 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.16 [+0.37] # 8.17 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.34 [+0.18] # 8.34 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.66 [+0.32] # 8.66 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.99 [+0.33] # 8.99 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.14 [+0.15] # 9.14 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.38 [+0.24] # 9.38 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.54 [+0.15] # 9.54 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.83 [+0.29] # 9.83 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.16 [+0.33] # 10.16 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.16 [+0.00] # 10.16 [+0.00] ################################################################################ # 10.17 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.17 [+0.00] ################################################################################ # 10.50 [+0.33] name: vrf # 10.50 [+0.00] filename: (builtin) # 13.83 [+3.33] version: 1.1 # 13.83 [+0.00] alias: rtnl-link-vrf # 13.83 [+0.00] license: GPL # 13.83 [+0.00] file: drivers/net/vrf # 13.84 [+0.00] description: Device driver to instantiate VRF domains # 13.84 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.28 [+0.44] # 14.28 [+0.00] TEST: testns-LqTdI3: net.vrf.strict_mode is available [ OK ] # 14.86 [+0.59] # 14.86 [+0.00] TEST: testns-LqTdI3: strict_mode=0 by default, 0 vrfs [ OK ] # 15.17 [+0.31] # 15.17 [+0.00] TEST: testns-LqTdI3: enable strict_mode (=1) [ OK ] # 15.49 [+0.32] # 15.49 [+0.00] TEST: testns-LqTdI3: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.81 [+0.32] # 15.81 [+0.00] TEST: testns-LqTdI3: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.18 [+0.36] # 16.18 [+0.00] TEST: testns-LqTdI3: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.55 [+0.38] # 16.55 [+0.00] TEST: testns-LqTdI3: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.88 [+0.32] # 16.88 [+0.00] TEST: testns-LqTdI3: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.19 [+0.32] # 17.19 [+0.00] TEST: testns-LqTdI3: disable strict_mode (=0) [ OK ] # 17.48 [+0.29] # 17.48 [+0.00] TEST: testns-LqTdI3: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.80 [+0.32] # 17.80 [+0.00] TEST: testns-LqTdI3: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.80 [+0.00] # 17.80 [+0.00] ################################################################################ # 17.81 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.81 [+0.00] ################################################################################ # 18.06 [+0.24] # 18.06 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.45 [+0.39] # 18.45 [+0.00] TEST: testns-LqTdI3: check strict_mode=0 [ OK ] # 18.67 [+0.22] # 18.67 [+0.00] TEST: testns-LqTdI3: remove vrf vrf101 [ OK ] # 18.88 [+0.21] # 18.88 [+0.00] TEST: testns-LqTdI3: remove vrf vrf102 [ OK ] # 19.04 [+0.15] # 19.04 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.34 [+0.31] # 19.34 [+0.00] TEST: testns-LqTdI3: enable strict_mode (=1) [ OK ] # 19.49 [+0.15] # 19.49 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.64 [+0.15] # 19.64 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.94 [+0.30] # 19.94 [+0.00] TEST: testns-LqTdI3: disable strict_mode (=0) [ OK ] # 20.24 [+0.30] # 20.24 [+0.00] TEST: testns-LqTdI3: disable strict_mode (=0) [ OK ] # 20.50 [+0.26] # 20.50 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.89 [+0.39] # 20.90 [+0.00] TEST: testns-LqTdI3: check strict_mode=0 [ OK ] # 21.88 [+0.99] # 21.88 [+0.00] Tests passed: 37 # 21.89 [+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__->