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.47 [+2.47] # 2.47 [+0.00] ################################################################################ # 2.47 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.47 [+0.00] ################################################################################ # 2.80 [+0.33] name: vrf # 2.81 [+0.00] filename: (builtin) # 6.03 [+3.23] version: 1.1 # 6.03 [+0.00] alias: rtnl-link-vrf # 6.04 [+0.00] license: GPL # 6.04 [+0.00] file: drivers/net/vrf # 6.04 [+0.00] description: Device driver to instantiate VRF domains # 6.04 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.30 [+0.26] # 6.30 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.72 [+0.42] # 6.72 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.04 [+0.32] # 7.04 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.32 [+0.28] # 7.32 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.48 [+0.16] # 7.48 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.80 [+0.32] # 7.80 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.96 [+0.16] # 7.96 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.26 [+0.30] # 8.26 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.58 [+0.32] # 8.58 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.73 [+0.15] # 8.73 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.96 [+0.23] # 8.96 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.10 [+0.14] # 9.10 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.41 [+0.31] # 9.42 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.72 [+0.31] # 9.72 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.72 [+0.00] # 9.72 [+0.00] ################################################################################ # 9.73 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.73 [+0.00] ################################################################################ # 10.02 [+0.29] name: vrf # 10.02 [+0.00] filename: (builtin) # 13.22 [+3.20] version: 1.1 # 13.22 [+0.00] alias: rtnl-link-vrf # 13.22 [+0.00] license: GPL # 13.22 [+0.00] file: drivers/net/vrf # 13.22 [+0.00] description: Device driver to instantiate VRF domains # 13.22 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.64 [+0.42] # 13.64 [+0.00] TEST: testns-Fzu17N: net.vrf.strict_mode is available [ OK ] # 14.19 [+0.55] # 14.19 [+0.00] TEST: testns-Fzu17N: strict_mode=0 by default, 0 vrfs [ OK ] # 14.48 [+0.29] # 14.48 [+0.00] TEST: testns-Fzu17N: enable strict_mode (=1) [ OK ] # 14.78 [+0.30] # 14.78 [+0.00] TEST: testns-Fzu17N: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.11 [+0.33] # 15.11 [+0.00] TEST: testns-Fzu17N: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.47 [+0.36] # 15.47 [+0.00] TEST: testns-Fzu17N: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.85 [+0.38] # 15.85 [+0.00] TEST: testns-Fzu17N: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.14 [+0.30] # 16.14 [+0.00] TEST: testns-Fzu17N: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.44 [+0.29] # 16.44 [+0.00] TEST: testns-Fzu17N: disable strict_mode (=0) [ OK ] # 16.75 [+0.31] # 16.75 [+0.00] TEST: testns-Fzu17N: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.05 [+0.30] # 17.05 [+0.00] TEST: testns-Fzu17N: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.05 [+0.00] # 17.05 [+0.00] ################################################################################ # 17.06 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.06 [+0.00] ################################################################################ # 17.28 [+0.22] # 17.28 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.68 [+0.40] # 17.68 [+0.00] TEST: testns-Fzu17N: check strict_mode=0 [ OK ] # 17.90 [+0.22] # 17.90 [+0.00] TEST: testns-Fzu17N: remove vrf vrf101 [ OK ] # 18.12 [+0.22] # 18.12 [+0.00] TEST: testns-Fzu17N: remove vrf vrf102 [ OK ] # 18.27 [+0.15] # 18.27 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.56 [+0.29] # 18.56 [+0.00] TEST: testns-Fzu17N: enable strict_mode (=1) [ OK ] # 18.73 [+0.16] # 18.73 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.87 [+0.14] # 18.87 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.19 [+0.31] # 19.19 [+0.00] TEST: testns-Fzu17N: disable strict_mode (=0) [ OK ] # 19.49 [+0.31] # 19.49 [+0.00] TEST: testns-Fzu17N: disable strict_mode (=0) [ OK ] # 19.75 [+0.26] # 19.75 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.17 [+0.42] # 20.17 [+0.00] TEST: testns-Fzu17N: check strict_mode=0 [ OK ] # 21.12 [+0.95] # 21.12 [+0.00] Tests passed: 37 # 21.12 [+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__->