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.62 [+2.62] # 2.62 [+0.00] ################################################################################ # 2.62 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.62 [+0.00] ################################################################################ # 3.01 [+0.39] name: vrf # 3.01 [+0.00] filename: (builtin) # 5.41 [+2.40] version: 1.1 # 5.41 [+0.00] alias: rtnl-link-vrf # 5.41 [+0.00] license: GPL # 5.41 [+0.00] file: drivers/net/vrf # 5.41 [+0.00] description: Device driver to instantiate VRF domains # 5.42 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.67 [+0.25] # 5.67 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.15 [+0.47] # 6.15 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.46 [+0.32] # 6.46 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.80 [+0.34] # 6.80 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 6.96 [+0.16] # 6.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.31 [+0.35] # 7.31 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.46 [+0.15] # 7.46 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.78 [+0.32] # 7.78 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.11 [+0.33] # 8.11 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.27 [+0.16] # 8.27 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.51 [+0.24] # 8.51 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.67 [+0.16] # 8.67 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.00 [+0.32] # 9.00 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.33 [+0.33] # 9.33 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.33 [+0.00] # 9.33 [+0.00] ################################################################################ # 9.33 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.33 [+0.00] ################################################################################ # 9.67 [+0.34] name: vrf # 9.67 [+0.00] filename: (builtin) # 13.09 [+3.42] version: 1.1 # 13.10 [+0.00] alias: rtnl-link-vrf # 13.10 [+0.00] license: GPL # 13.10 [+0.00] file: drivers/net/vrf # 13.10 [+0.00] description: Device driver to instantiate VRF domains # 13.10 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.54 [+0.44] # 13.54 [+0.00] TEST: testns-VjoAnl: net.vrf.strict_mode is available [ OK ] # 14.11 [+0.58] # 14.11 [+0.00] TEST: testns-VjoAnl: strict_mode=0 by default, 0 vrfs [ OK ] # 14.43 [+0.32] # 14.43 [+0.00] TEST: testns-VjoAnl: enable strict_mode (=1) [ OK ] # 14.76 [+0.33] # 14.76 [+0.00] TEST: testns-VjoAnl: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.10 [+0.33] # 15.10 [+0.00] TEST: testns-VjoAnl: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.47 [+0.37] # 15.47 [+0.00] TEST: testns-VjoAnl: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.85 [+0.38] # 15.85 [+0.00] TEST: testns-VjoAnl: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.17 [+0.32] # 16.17 [+0.00] TEST: testns-VjoAnl: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.48 [+0.32] # 16.48 [+0.00] TEST: testns-VjoAnl: disable strict_mode (=0) [ OK ] # 16.83 [+0.34] # 16.83 [+0.00] TEST: testns-VjoAnl: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.14 [+0.31] # 17.14 [+0.00] TEST: testns-VjoAnl: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.14 [+0.00] # 17.14 [+0.00] ################################################################################ # 17.15 [+0.01] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.15 [+0.00] ################################################################################ # 17.44 [+0.28] # 17.44 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.84 [+0.40] # 17.84 [+0.00] TEST: testns-VjoAnl: check strict_mode=0 [ OK ] # 18.06 [+0.22] # 18.06 [+0.00] TEST: testns-VjoAnl: remove vrf vrf101 [ OK ] # 18.27 [+0.21] # 18.27 [+0.00] TEST: testns-VjoAnl: remove vrf vrf102 [ OK ] # 18.43 [+0.16] # 18.43 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.74 [+0.31] # 18.74 [+0.00] TEST: testns-VjoAnl: enable strict_mode (=1) [ OK ] # 18.89 [+0.15] # 18.89 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.04 [+0.15] # 19.04 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.36 [+0.32] # 19.36 [+0.00] TEST: testns-VjoAnl: disable strict_mode (=0) [ OK ] # 19.67 [+0.31] # 19.67 [+0.00] TEST: testns-VjoAnl: disable strict_mode (=0) [ OK ] # 19.92 [+0.25] # 19.92 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.36 [+0.43] # 20.36 [+0.00] TEST: testns-VjoAnl: check strict_mode=0 [ OK ] # 21.38 [+1.03] # 21.38 [+0.00] Tests passed: 37 # 21.38 [+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__->