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.23 [+2.23] # 2.23 [+0.00] ################################################################################ # 2.23 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.23 [+0.00] ################################################################################ # 2.54 [+0.31] name: vrf # 2.54 [+0.00] filename: (builtin) # 5.53 [+2.99] version: 1.1 # 5.53 [+0.00] alias: rtnl-link-vrf # 5.53 [+0.00] license: GPL # 5.53 [+0.00] file: drivers/net/vrf # 5.53 [+0.00] description: Device driver to instantiate VRF domains # 5.53 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.77 [+0.24] # 5.77 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.13 [+0.36] # 6.13 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.42 [+0.29] # 6.42 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.66 [+0.24] # 6.66 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 6.81 [+0.15] # 6.81 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.18 [+0.37] # 7.18 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.34 [+0.16] # 7.34 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.64 [+0.30] # 7.64 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 7.91 [+0.28] # 7.91 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.06 [+0.14] # 8.06 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.28 [+0.22] # 8.28 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.41 [+0.13] # 8.41 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.70 [+0.29] # 8.70 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 8.99 [+0.28] # 8.99 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 8.99 [+0.00] # 8.99 [+0.00] ################################################################################ # 8.99 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 8.99 [+0.00] ################################################################################ # 9.28 [+0.29] name: vrf # 9.28 [+0.00] filename: (builtin) # 12.31 [+3.03] version: 1.1 # 12.31 [+0.00] alias: rtnl-link-vrf # 12.31 [+0.00] license: GPL # 12.31 [+0.00] file: drivers/net/vrf # 12.32 [+0.00] description: Device driver to instantiate VRF domains # 12.32 [+0.00] author: Shrijeet Mukherjee, David Ahern # 12.69 [+0.37] # 12.69 [+0.00] TEST: testns-dLQrCk: net.vrf.strict_mode is available [ OK ] # 13.20 [+0.50] # 13.20 [+0.00] TEST: testns-dLQrCk: strict_mode=0 by default, 0 vrfs [ OK ] # 13.48 [+0.28] # 13.48 [+0.00] TEST: testns-dLQrCk: enable strict_mode (=1) [ OK ] # 13.78 [+0.30] # 13.78 [+0.00] TEST: testns-dLQrCk: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.08 [+0.30] # 14.08 [+0.00] TEST: testns-dLQrCk: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.43 [+0.36] # 14.43 [+0.00] TEST: testns-dLQrCk: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 14.78 [+0.35] # 14.78 [+0.00] TEST: testns-dLQrCk: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.07 [+0.29] # 15.07 [+0.00] TEST: testns-dLQrCk: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.34 [+0.27] # 15.34 [+0.00] TEST: testns-dLQrCk: disable strict_mode (=0) [ OK ] # 15.63 [+0.29] # 15.63 [+0.00] TEST: testns-dLQrCk: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 15.92 [+0.29] # 15.92 [+0.00] TEST: testns-dLQrCk: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 15.92 [+0.00] # 15.92 [+0.00] ################################################################################ # 15.93 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 15.93 [+0.00] ################################################################################ # 16.18 [+0.25] # 16.18 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 16.56 [+0.38] # 16.56 [+0.00] TEST: testns-dLQrCk: check strict_mode=0 [ OK ] # 16.76 [+0.20] # 16.76 [+0.00] TEST: testns-dLQrCk: remove vrf vrf101 [ OK ] # 16.96 [+0.20] # 16.96 [+0.00] TEST: testns-dLQrCk: remove vrf vrf102 [ OK ] # 17.10 [+0.14] # 17.10 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.38 [+0.28] # 17.38 [+0.00] TEST: testns-dLQrCk: enable strict_mode (=1) [ OK ] # 17.52 [+0.14] # 17.52 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 17.66 [+0.14] # 17.66 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 17.94 [+0.28] # 17.94 [+0.00] TEST: testns-dLQrCk: disable strict_mode (=0) [ OK ] # 18.21 [+0.27] # 18.22 [+0.00] TEST: testns-dLQrCk: disable strict_mode (=0) [ OK ] # 18.44 [+0.22] # 18.44 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.79 [+0.35] # 18.79 [+0.00] TEST: testns-dLQrCk: check strict_mode=0 [ OK ] # 19.68 [+0.89] # 19.68 [+0.00] Tests passed: 37 # 19.68 [+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__->