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.43 [+2.43] # 2.43 [+0.00] ################################################################################ # 2.44 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.44 [+0.00] ################################################################################ # 2.80 [+0.36] name: vrf # 2.80 [+0.00] filename: (builtin) # 5.74 [+2.94] version: 1.1 # 5.74 [+0.00] alias: rtnl-link-vrf # 5.74 [+0.00] license: GPL # 5.74 [+0.00] file: drivers/net/vrf # 5.74 [+0.00] description: Device driver to instantiate VRF domains # 5.74 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.00 [+0.26] # 6.00 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.35 [+0.35] # 6.35 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.67 [+0.32] # 6.67 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.99 [+0.32] # 6.99 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.17 [+0.17] # 7.17 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.51 [+0.34] # 7.51 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.67 [+0.16] # 7.67 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.98 [+0.31] # 7.98 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.29 [+0.31] # 8.29 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.44 [+0.15] # 8.44 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.68 [+0.24] # 8.68 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.83 [+0.15] # 8.83 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.15 [+0.32] # 9.15 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.46 [+0.31] # 9.46 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.47 [+0.00] # 9.47 [+0.00] ################################################################################ # 9.47 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.48 [+0.00] ################################################################################ # 9.81 [+0.34] name: vrf # 9.81 [+0.00] filename: (builtin) # 12.99 [+3.18] version: 1.1 # 12.99 [+0.00] alias: rtnl-link-vrf # 12.99 [+0.00] license: GPL # 12.99 [+0.00] file: drivers/net/vrf # 12.99 [+0.00] description: Device driver to instantiate VRF domains # 12.99 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.43 [+0.43] # 13.43 [+0.00] TEST: testns-VOy8rI: net.vrf.strict_mode is available [ OK ] # 13.99 [+0.56] # 13.99 [+0.00] TEST: testns-VOy8rI: strict_mode=0 by default, 0 vrfs [ OK ] # 14.30 [+0.31] # 14.30 [+0.00] TEST: testns-VOy8rI: enable strict_mode (=1) [ OK ] # 14.60 [+0.30] # 14.60 [+0.00] TEST: testns-VOy8rI: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.92 [+0.31] # 14.92 [+0.00] TEST: testns-VOy8rI: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.29 [+0.37] # 15.29 [+0.00] TEST: testns-VOy8rI: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.65 [+0.36] # 15.65 [+0.00] TEST: testns-VOy8rI: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.98 [+0.33] # 15.98 [+0.00] TEST: testns-VOy8rI: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.28 [+0.29] # 16.28 [+0.00] TEST: testns-VOy8rI: disable strict_mode (=0) [ OK ] # 16.57 [+0.30] # 16.57 [+0.00] TEST: testns-VOy8rI: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.89 [+0.31] # 16.89 [+0.00] TEST: testns-VOy8rI: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.89 [+0.00] # 16.89 [+0.00] ################################################################################ # 16.90 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.90 [+0.00] ################################################################################ # 17.12 [+0.22] # 17.12 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.55 [+0.42] # 17.55 [+0.00] TEST: testns-VOy8rI: check strict_mode=0 [ OK ] # 17.77 [+0.22] # 17.77 [+0.00] TEST: testns-VOy8rI: remove vrf vrf101 [ OK ] # 17.99 [+0.22] # 17.99 [+0.00] TEST: testns-VOy8rI: remove vrf vrf102 [ OK ] # 18.14 [+0.15] # 18.14 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.45 [+0.31] # 18.45 [+0.00] TEST: testns-VOy8rI: enable strict_mode (=1) [ OK ] # 18.60 [+0.15] # 18.60 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.76 [+0.15] # 18.76 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.06 [+0.30] # 19.06 [+0.00] TEST: testns-VOy8rI: disable strict_mode (=0) [ OK ] # 19.36 [+0.30] # 19.36 [+0.00] TEST: testns-VOy8rI: disable strict_mode (=0) [ OK ] # 19.59 [+0.24] # 19.59 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.00 [+0.41] # 20.00 [+0.00] TEST: testns-VOy8rI: check strict_mode=0 [ OK ] # 20.99 [+0.99] # 20.99 [+0.00] Tests passed: 37 # 20.99 [+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__->