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.71 [+2.71] # 2.71 [+0.00] ################################################################################ # 2.71 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.72 [+0.00] ################################################################################ # 3.04 [+0.33] name: vrf # 3.05 [+0.00] filename: (builtin) # 6.47 [+3.42] version: 1.1 # 6.47 [+0.00] alias: rtnl-link-vrf # 6.47 [+0.00] license: GPL # 6.47 [+0.00] file: drivers/net/vrf # 6.47 [+0.00] description: Device driver to instantiate VRF domains # 6.48 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.74 [+0.26] # 6.74 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.17 [+0.43] # 7.17 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.50 [+0.33] # 7.50 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.81 [+0.31] # 7.81 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.99 [+0.18] # 7.99 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.38 [+0.39] # 8.38 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.56 [+0.18] # 8.56 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.89 [+0.33] # 8.89 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.22 [+0.33] # 9.22 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.38 [+0.16] # 9.38 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.62 [+0.25] # 9.62 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.79 [+0.16] # 9.79 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.12 [+0.34] # 10.12 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.46 [+0.34] # 10.46 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.47 [+0.00] # 10.47 [+0.00] ################################################################################ # 10.47 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.47 [+0.00] ################################################################################ # 10.82 [+0.35] name: vrf # 10.82 [+0.00] filename: (builtin) # 13.98 [+3.16] version: 1.1 # 13.98 [+0.00] alias: rtnl-link-vrf # 13.98 [+0.00] license: GPL # 13.98 [+0.00] file: drivers/net/vrf # 13.98 [+0.00] description: Device driver to instantiate VRF domains # 13.98 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.41 [+0.43] # 14.41 [+0.00] TEST: testns-OVMW05: net.vrf.strict_mode is available [ OK ] # 15.01 [+0.60] # 15.01 [+0.00] TEST: testns-OVMW05: strict_mode=0 by default, 0 vrfs [ OK ] # 15.34 [+0.33] # 15.34 [+0.00] TEST: testns-OVMW05: enable strict_mode (=1) [ OK ] # 15.68 [+0.33] # 15.68 [+0.00] TEST: testns-OVMW05: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.02 [+0.34] # 16.02 [+0.00] TEST: testns-OVMW05: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.41 [+0.39] # 16.41 [+0.00] TEST: testns-OVMW05: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.79 [+0.39] # 16.79 [+0.00] TEST: testns-OVMW05: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.14 [+0.34] # 17.14 [+0.00] TEST: testns-OVMW05: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.47 [+0.34] # 17.47 [+0.00] TEST: testns-OVMW05: disable strict_mode (=0) [ OK ] # 17.79 [+0.31] # 17.79 [+0.00] TEST: testns-OVMW05: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.13 [+0.34] # 18.13 [+0.00] TEST: testns-OVMW05: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.13 [+0.00] # 18.13 [+0.00] ################################################################################ # 18.14 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.14 [+0.00] ################################################################################ # 18.41 [+0.28] # 18.41 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.83 [+0.42] # 18.83 [+0.00] TEST: testns-OVMW05: check strict_mode=0 [ OK ] # 19.06 [+0.22] # 19.06 [+0.00] TEST: testns-OVMW05: remove vrf vrf101 [ OK ] # 19.27 [+0.22] # 19.27 [+0.00] TEST: testns-OVMW05: remove vrf vrf102 [ OK ] # 19.42 [+0.15] # 19.42 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.76 [+0.34] # 19.76 [+0.00] TEST: testns-OVMW05: enable strict_mode (=1) [ OK ] # 19.92 [+0.15] # 19.92 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.08 [+0.16] # 20.08 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.39 [+0.31] # 20.39 [+0.00] TEST: testns-OVMW05: disable strict_mode (=0) [ OK ] # 20.72 [+0.33] # 20.72 [+0.00] TEST: testns-OVMW05: disable strict_mode (=0) [ OK ] # 20.99 [+0.27] # 20.99 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.41 [+0.42] # 21.41 [+0.00] TEST: testns-OVMW05: check strict_mode=0 [ OK ] # 22.35 [+0.94] # 22.35 [+0.00] Tests passed: 37 # 22.35 [+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__->