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.26 [+2.26] # 2.26 [+0.00] ################################################################################ # 2.26 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.26 [+0.00] ################################################################################ # 2.60 [+0.34] name: vrf # 2.60 [+0.00] filename: (builtin) # 5.77 [+3.17] version: 1.1 # 5.78 [+0.00] alias: rtnl-link-vrf # 5.78 [+0.00] license: GPL # 5.78 [+0.00] file: drivers/net/vrf # 5.78 [+0.00] description: Device driver to instantiate VRF domains # 5.78 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.03 [+0.25] # 6.03 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.43 [+0.40] # 6.43 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.73 [+0.31] # 6.73 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.04 [+0.31] # 7.05 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.20 [+0.16] # 7.20 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.53 [+0.33] # 7.53 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.69 [+0.15] # 7.69 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.00 [+0.31] # 8.00 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.30 [+0.31] # 8.30 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.47 [+0.17] # 8.47 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.69 [+0.22] # 8.69 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.84 [+0.14] # 8.84 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.15 [+0.31] # 9.15 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.47 [+0.32] # 9.47 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.48 [+0.00] # 9.48 [+0.00] ################################################################################ # 9.48 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.48 [+0.00] ################################################################################ # 9.83 [+0.34] name: vrf # 9.83 [+0.00] filename: (builtin) # 13.03 [+3.20] version: 1.1 # 13.03 [+0.00] alias: rtnl-link-vrf # 13.03 [+0.00] license: GPL # 13.03 [+0.00] file: drivers/net/vrf # 13.04 [+0.00] description: Device driver to instantiate VRF domains # 13.04 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.45 [+0.41] # 13.45 [+0.00] TEST: testns-t2YCRq: net.vrf.strict_mode is available [ OK ] # 14.01 [+0.56] # 14.01 [+0.00] TEST: testns-t2YCRq: strict_mode=0 by default, 0 vrfs [ OK ] # 14.34 [+0.33] # 14.34 [+0.00] TEST: testns-t2YCRq: enable strict_mode (=1) [ OK ] # 14.64 [+0.31] # 14.64 [+0.00] TEST: testns-t2YCRq: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.96 [+0.31] # 14.96 [+0.00] TEST: testns-t2YCRq: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.33 [+0.37] # 15.33 [+0.00] TEST: testns-t2YCRq: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.70 [+0.36] # 15.70 [+0.00] TEST: testns-t2YCRq: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.00 [+0.31] # 16.00 [+0.00] TEST: testns-t2YCRq: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.30 [+0.30] # 16.30 [+0.00] TEST: testns-t2YCRq: disable strict_mode (=0) [ OK ] # 16.59 [+0.29] # 16.59 [+0.00] TEST: testns-t2YCRq: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.90 [+0.31] # 16.90 [+0.00] TEST: testns-t2YCRq: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.90 [+0.00] # 16.90 [+0.00] ################################################################################ # 16.90 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.91 [+0.00] ################################################################################ # 17.14 [+0.23] # 17.14 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.54 [+0.40] # 17.54 [+0.00] TEST: testns-t2YCRq: check strict_mode=0 [ OK ] # 17.72 [+0.18] # 17.72 [+0.00] TEST: testns-t2YCRq: remove vrf vrf101 [ OK ] # 17.93 [+0.21] # 17.93 [+0.00] TEST: testns-t2YCRq: remove vrf vrf102 [ OK ] # 18.08 [+0.15] # 18.09 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.39 [+0.31] # 18.39 [+0.00] TEST: testns-t2YCRq: enable strict_mode (=1) [ OK ] # 18.54 [+0.15] # 18.55 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.70 [+0.15] # 18.70 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.00 [+0.30] # 19.00 [+0.00] TEST: testns-t2YCRq: disable strict_mode (=0) [ OK ] # 19.30 [+0.30] # 19.30 [+0.00] TEST: testns-t2YCRq: disable strict_mode (=0) [ OK ] # 19.53 [+0.24] # 19.54 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.94 [+0.40] # 19.94 [+0.00] TEST: testns-t2YCRq: check strict_mode=0 [ OK ] # 20.93 [+0.99] # 20.93 [+0.00] Tests passed: 37 # 20.93 [+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__->