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.80 [+2.80] # 2.80 [+0.00] ################################################################################ # 2.80 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.80 [+0.00] ################################################################################ # 3.18 [+0.37] name: vrf # 3.18 [+0.00] filename: (builtin) # 6.79 [+3.61] version: 1.1 # 6.79 [+0.00] alias: rtnl-link-vrf # 6.79 [+0.00] license: GPL # 6.79 [+0.00] file: drivers/net/vrf # 6.79 [+0.00] description: Device driver to instantiate VRF domains # 6.80 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.12 [+0.33] # 7.12 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.59 [+0.47] # 7.59 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.95 [+0.36] # 7.95 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.29 [+0.34] # 8.29 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.48 [+0.19] # 8.48 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.86 [+0.38] # 8.86 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 9.03 [+0.17] # 9.03 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.36 [+0.33] # 9.36 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.70 [+0.34] # 9.70 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.87 [+0.17] # 9.87 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.11 [+0.23] # 10.11 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.27 [+0.16] # 10.27 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.59 [+0.32] # 10.59 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.93 [+0.34] # 10.93 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.93 [+0.00] # 10.93 [+0.00] ################################################################################ # 10.94 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.94 [+0.00] ################################################################################ # 11.28 [+0.34] name: vrf # 11.28 [+0.00] filename: (builtin) # 14.75 [+3.47] version: 1.1 # 14.75 [+0.00] alias: rtnl-link-vrf # 14.76 [+0.00] license: GPL # 14.76 [+0.00] file: drivers/net/vrf # 14.76 [+0.00] description: Device driver to instantiate VRF domains # 14.76 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.19 [+0.43] # 15.19 [+0.00] TEST: testns-KafVWv: net.vrf.strict_mode is available [ OK ] # 15.79 [+0.60] # 15.79 [+0.00] TEST: testns-KafVWv: strict_mode=0 by default, 0 vrfs [ OK ] # 16.11 [+0.32] # 16.11 [+0.00] TEST: testns-KafVWv: enable strict_mode (=1) [ OK ] # 16.45 [+0.34] # 16.45 [+0.00] TEST: testns-KafVWv: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.78 [+0.33] # 16.78 [+0.00] TEST: testns-KafVWv: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 17.17 [+0.39] # 17.17 [+0.00] TEST: testns-KafVWv: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.55 [+0.38] # 17.55 [+0.00] TEST: testns-KafVWv: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.88 [+0.33] # 17.88 [+0.00] TEST: testns-KafVWv: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.21 [+0.33] # 18.21 [+0.00] TEST: testns-KafVWv: disable strict_mode (=0) [ OK ] # 18.53 [+0.33] # 18.54 [+0.00] TEST: testns-KafVWv: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.86 [+0.32] # 18.86 [+0.00] TEST: testns-KafVWv: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.86 [+0.00] # 18.86 [+0.00] ################################################################################ # 18.86 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.87 [+0.00] ################################################################################ # 19.13 [+0.27] # 19.13 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.60 [+0.46] # 19.60 [+0.00] TEST: testns-KafVWv: check strict_mode=0 [ OK ] # 19.84 [+0.24] # 19.84 [+0.00] TEST: testns-KafVWv: remove vrf vrf101 [ OK ] # 20.06 [+0.22] # 20.06 [+0.00] TEST: testns-KafVWv: remove vrf vrf102 [ OK ] # 20.23 [+0.17] # 20.23 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.56 [+0.33] # 20.56 [+0.00] TEST: testns-KafVWv: enable strict_mode (=1) [ OK ] # 20.72 [+0.16] # 20.72 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.90 [+0.18] # 20.90 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 21.24 [+0.34] # 21.24 [+0.00] TEST: testns-KafVWv: disable strict_mode (=0) [ OK ] # 21.58 [+0.34] # 21.58 [+0.00] TEST: testns-KafVWv: disable strict_mode (=0) [ OK ] # 21.86 [+0.27] # 21.86 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 22.32 [+0.47] # 22.33 [+0.00] TEST: testns-KafVWv: check strict_mode=0 [ OK ] # 23.35 [+1.02] # 23.35 [+0.00] Tests passed: 37 # 23.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__->