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/wt-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net/lib' make[1]: Entering directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 1.99 [+1.99] # 1.99 [+0.00] ################################################################################ # 1.99 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.99 [+0.00] ################################################################################ # 2.28 [+0.29] name: vrf # 2.28 [+0.00] filename: (builtin) # 2.29 [+0.01] version: 1.1 # 2.29 [+0.00] alias: rtnl-link-vrf # 2.29 [+0.00] license: GPL # 2.29 [+0.00] file: drivers/net/vrf # 2.29 [+0.00] description: Device driver to instantiate VRF domains # 2.30 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.45 [+0.15] # 2.45 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.75 [+0.30] # 2.75 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.03 [+0.28] # 3.03 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.27 [+0.24] # 3.27 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.37 [+0.10] # 3.37 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.68 [+0.31] # 3.68 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.77 [+0.09] # 3.77 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.07 [+0.30] # 4.07 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.28 [+0.21] # 4.29 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.38 [+0.09] # 4.38 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.52 [+0.14] # 4.52 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.63 [+0.11] # 4.63 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.92 [+0.29] # 4.92 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.16 [+0.23] # 5.16 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.16 [+0.00] # 5.16 [+0.00] ################################################################################ # 5.16 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.16 [+0.00] ################################################################################ # 5.43 [+0.27] name: vrf # 5.43 [+0.00] filename: (builtin) # 5.44 [+0.01] version: 1.1 # 5.44 [+0.00] alias: rtnl-link-vrf # 5.44 [+0.00] license: GPL # 5.44 [+0.00] file: drivers/net/vrf # 5.44 [+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: testns-Is7LEE: net.vrf.strict_mode is available [ OK ] # 6.12 [+0.40] # 6.12 [+0.00] TEST: testns-Is7LEE: strict_mode=0 by default, 0 vrfs [ OK ] # 6.32 [+0.20] # 6.32 [+0.00] TEST: testns-Is7LEE: enable strict_mode (=1) [ OK ] # 6.58 [+0.26] # 6.58 [+0.00] TEST: testns-Is7LEE: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.81 [+0.23] # 6.81 [+0.00] TEST: testns-Is7LEE: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.14 [+0.33] # 7.14 [+0.00] TEST: testns-Is7LEE: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.45 [+0.31] # 7.45 [+0.00] TEST: testns-Is7LEE: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 7.72 [+0.27] # 7.73 [+0.00] TEST: testns-Is7LEE: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 7.91 [+0.18] # 7.91 [+0.00] TEST: testns-Is7LEE: disable strict_mode (=0) [ OK ] # 8.18 [+0.28] # 8.19 [+0.00] TEST: testns-Is7LEE: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.46 [+0.27] # 8.46 [+0.00] TEST: testns-Is7LEE: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 8.46 [+0.00] # 8.46 [+0.00] ################################################################################ # 8.46 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 8.46 [+0.00] ################################################################################ # 8.61 [+0.15] # 8.62 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 8.87 [+0.25] # 8.87 [+0.00] TEST: testns-Is7LEE: check strict_mode=0 [ OK ] # 9.03 [+0.16] # 9.03 [+0.00] TEST: testns-Is7LEE: remove vrf vrf101 [ OK ] # 9.17 [+0.14] # 9.17 [+0.00] TEST: testns-Is7LEE: remove vrf vrf102 [ OK ] # 9.28 [+0.10] # 9.28 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.45 [+0.17] # 9.45 [+0.00] TEST: testns-Is7LEE: enable strict_mode (=1) [ OK ] # 9.55 [+0.10] # 9.55 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.65 [+0.10] # 9.65 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.85 [+0.20] # 9.85 [+0.00] TEST: testns-Is7LEE: disable strict_mode (=0) [ OK ] # 10.04 [+0.19] # 10.04 [+0.00] TEST: testns-Is7LEE: disable strict_mode (=0) [ OK ] # 10.21 [+0.17] # 10.21 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 10.48 [+0.27] # 10.48 [+0.00] TEST: testns-Is7LEE: check strict_mode=0 [ OK ] # 11.13 [+0.65] # 11.13 [+0.00] Tests passed: 37 # 11.14 [+0.00] Tests failed: 0 ok 1 selftests: net: vrf_strict_mode_test.sh make[1]: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing/wt-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->