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.31 [+2.31] # 2.31 [+0.00] ################################################################################ # 2.31 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.32 [+0.00] ################################################################################ # 2.65 [+0.34] name: vrf # 2.66 [+0.00] filename: (builtin) # 5.44 [+2.79] version: 1.1 # 5.44 [+0.00] alias: rtnl-link-vrf # 5.45 [+0.00] license: GPL # 5.45 [+0.00] file: drivers/net/vrf # 5.45 [+0.00] description: Device driver to instantiate VRF domains # 5.45 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.72 [+0.27] # 5.72 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.09 [+0.37] # 6.09 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.44 [+0.34] # 6.44 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.73 [+0.30] # 6.74 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 6.88 [+0.15] # 6.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.21 [+0.33] # 7.21 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.36 [+0.15] # 7.36 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.66 [+0.30] # 7.66 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 7.94 [+0.28] # 7.94 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.08 [+0.14] # 8.08 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.29 [+0.21] # 8.29 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.43 [+0.14] # 8.43 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.70 [+0.28] # 8.71 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 8.99 [+0.29] # 8.99 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.00 [+0.00] # 9.00 [+0.00] ################################################################################ # 9.00 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.00 [+0.00] ################################################################################ # 9.32 [+0.32] name: vrf # 9.32 [+0.00] filename: (builtin) # 12.36 [+3.04] version: 1.1 # 12.36 [+0.00] alias: rtnl-link-vrf # 12.36 [+0.00] license: GPL # 12.36 [+0.00] file: drivers/net/vrf # 12.36 [+0.00] description: Device driver to instantiate VRF domains # 12.37 [+0.00] author: Shrijeet Mukherjee, David Ahern # 12.75 [+0.39] # 12.75 [+0.00] TEST: testns-hfyWwX: net.vrf.strict_mode is available [ OK ] # 13.27 [+0.52] # 13.27 [+0.00] TEST: testns-hfyWwX: strict_mode=0 by default, 0 vrfs [ OK ] # 13.54 [+0.27] # 13.54 [+0.00] TEST: testns-hfyWwX: enable strict_mode (=1) [ OK ] # 13.86 [+0.32] # 13.86 [+0.00] TEST: testns-hfyWwX: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.15 [+0.29] # 14.15 [+0.00] TEST: testns-hfyWwX: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.51 [+0.36] # 14.51 [+0.00] TEST: testns-hfyWwX: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 14.88 [+0.37] # 14.88 [+0.00] TEST: testns-hfyWwX: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.16 [+0.28] # 15.16 [+0.00] TEST: testns-hfyWwX: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.45 [+0.29] # 15.45 [+0.00] TEST: testns-hfyWwX: disable strict_mode (=0) [ OK ] # 15.75 [+0.30] # 15.75 [+0.00] TEST: testns-hfyWwX: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.05 [+0.30] # 16.05 [+0.00] TEST: testns-hfyWwX: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.05 [+0.00] # 16.05 [+0.00] ################################################################################ # 16.05 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.06 [+0.00] ################################################################################ # 16.29 [+0.23] # 16.29 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 16.64 [+0.35] # 16.64 [+0.00] TEST: testns-hfyWwX: check strict_mode=0 [ OK ] # 16.85 [+0.20] # 16.85 [+0.00] TEST: testns-hfyWwX: remove vrf vrf101 [ OK ] # 17.03 [+0.18] # 17.03 [+0.00] TEST: testns-hfyWwX: remove vrf vrf102 [ OK ] # 17.16 [+0.14] # 17.16 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.45 [+0.29] # 17.45 [+0.00] TEST: testns-hfyWwX: enable strict_mode (=1) [ OK ] # 17.59 [+0.14] # 17.59 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 17.72 [+0.14] # 17.72 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.00 [+0.28] # 18.00 [+0.00] TEST: testns-hfyWwX: disable strict_mode (=0) [ OK ] # 18.30 [+0.29] # 18.30 [+0.00] TEST: testns-hfyWwX: disable strict_mode (=0) [ OK ] # 18.51 [+0.21] # 18.51 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.88 [+0.37] # 18.88 [+0.00] TEST: testns-hfyWwX: check strict_mode=0 [ OK ] # 19.81 [+0.93] # 19.81 [+0.00] Tests passed: 37 # 19.81 [+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__->