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.32 [+2.32] # 2.32 [+0.00] ################################################################################ # 2.32 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.32 [+0.00] ################################################################################ # 2.64 [+0.32] name: vrf # 2.64 [+0.00] filename: (builtin) # 5.71 [+3.06] version: 1.1 # 5.71 [+0.00] alias: rtnl-link-vrf # 5.71 [+0.00] license: GPL # 5.71 [+0.00] file: drivers/net/vrf # 5.71 [+0.00] description: Device driver to instantiate VRF domains # 5.71 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.95 [+0.24] # 5.95 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.33 [+0.38] # 6.33 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.64 [+0.31] # 6.64 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.92 [+0.28] # 6.92 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.07 [+0.15] # 7.07 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.41 [+0.34] # 7.41 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.56 [+0.15] # 7.56 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.87 [+0.31] # 7.87 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.17 [+0.30] # 8.17 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.31 [+0.14] # 8.31 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.54 [+0.23] # 8.54 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.67 [+0.14] # 8.67 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.95 [+0.28] # 8.95 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.25 [+0.29] # 9.25 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.25 [+0.00] # 9.25 [+0.00] ################################################################################ # 9.25 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.25 [+0.00] ################################################################################ # 9.55 [+0.30] name: vrf # 9.55 [+0.00] filename: (builtin) # 12.60 [+3.04] version: 1.1 # 12.60 [+0.00] alias: rtnl-link-vrf # 12.60 [+0.00] license: GPL # 12.60 [+0.00] file: drivers/net/vrf # 12.60 [+0.00] description: Device driver to instantiate VRF domains # 12.60 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.00 [+0.39] # 13.00 [+0.00] TEST: testns-Hv24n8: net.vrf.strict_mode is available [ OK ] # 13.53 [+0.53] # 13.53 [+0.00] TEST: testns-Hv24n8: strict_mode=0 by default, 0 vrfs [ OK ] # 13.81 [+0.28] # 13.81 [+0.00] TEST: testns-Hv24n8: enable strict_mode (=1) [ OK ] # 14.12 [+0.32] # 14.12 [+0.00] TEST: testns-Hv24n8: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.41 [+0.29] # 14.41 [+0.00] TEST: testns-Hv24n8: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.76 [+0.35] # 14.76 [+0.00] TEST: testns-Hv24n8: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.13 [+0.36] # 15.13 [+0.00] TEST: testns-Hv24n8: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.43 [+0.31] # 15.43 [+0.00] TEST: testns-Hv24n8: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.70 [+0.27] # 15.70 [+0.00] TEST: testns-Hv24n8: disable strict_mode (=0) [ OK ] # 15.99 [+0.29] # 15.99 [+0.00] TEST: testns-Hv24n8: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.30 [+0.31] # 16.30 [+0.00] TEST: testns-Hv24n8: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.30 [+0.00] # 16.30 [+0.00] ################################################################################ # 16.30 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.31 [+0.00] ################################################################################ # 16.54 [+0.24] # 16.54 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 16.91 [+0.36] # 16.91 [+0.00] TEST: testns-Hv24n8: check strict_mode=0 [ OK ] # 17.11 [+0.20] # 17.11 [+0.00] TEST: testns-Hv24n8: remove vrf vrf101 [ OK ] # 17.31 [+0.21] # 17.31 [+0.00] TEST: testns-Hv24n8: remove vrf vrf102 [ OK ] # 17.46 [+0.15] # 17.46 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.74 [+0.28] # 17.74 [+0.00] TEST: testns-Hv24n8: enable strict_mode (=1) [ OK ] # 17.88 [+0.14] # 17.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.01 [+0.13] # 18.01 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.30 [+0.28] # 18.30 [+0.00] TEST: testns-Hv24n8: disable strict_mode (=0) [ OK ] # 18.58 [+0.28] # 18.58 [+0.00] TEST: testns-Hv24n8: disable strict_mode (=0) [ OK ] # 18.81 [+0.23] # 18.81 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.15 [+0.34] # 19.15 [+0.00] TEST: testns-Hv24n8: check strict_mode=0 [ OK ] # 20.07 [+0.93] # 20.07 [+0.00] Tests passed: 37 # 20.08 [+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__->