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.58 [+2.58] # 2.58 [+0.00] ################################################################################ # 2.58 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.58 [+0.00] ################################################################################ # 2.92 [+0.34] name: vrf # 2.92 [+0.00] filename: (builtin) # 6.42 [+3.50] version: 1.1 # 6.42 [+0.00] alias: rtnl-link-vrf # 6.42 [+0.00] license: GPL # 6.42 [+0.00] file: drivers/net/vrf # 6.42 [+0.00] description: Device driver to instantiate VRF domains # 6.43 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.73 [+0.31] # 6.73 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.15 [+0.41] # 7.15 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.45 [+0.30] # 7.45 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.77 [+0.32] # 7.77 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.93 [+0.16] # 7.93 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.30 [+0.36] # 8.30 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.46 [+0.16] # 8.46 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.78 [+0.32] # 8.78 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.13 [+0.34] # 9.13 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.31 [+0.18] # 9.31 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.55 [+0.24] # 9.55 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.70 [+0.16] # 9.70 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.00 [+0.29] # 10.00 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.33 [+0.34] # 10.33 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.34 [+0.00] # 10.34 [+0.00] ################################################################################ # 10.34 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.34 [+0.00] ################################################################################ # 10.65 [+0.31] name: vrf # 10.65 [+0.00] filename: (builtin) # 13.75 [+3.10] version: 1.1 # 13.75 [+0.00] alias: rtnl-link-vrf # 13.75 [+0.00] license: GPL # 13.75 [+0.00] file: drivers/net/vrf # 13.75 [+0.00] description: Device driver to instantiate VRF domains # 13.76 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.22 [+0.46] # 14.22 [+0.00] TEST: testns-8cvOJA: net.vrf.strict_mode is available [ OK ] # 14.78 [+0.56] # 14.78 [+0.00] TEST: testns-8cvOJA: strict_mode=0 by default, 0 vrfs [ OK ] # 15.11 [+0.33] # 15.11 [+0.00] TEST: testns-8cvOJA: enable strict_mode (=1) [ OK ] # 15.44 [+0.33] # 15.44 [+0.00] TEST: testns-8cvOJA: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.76 [+0.32] # 15.76 [+0.00] TEST: testns-8cvOJA: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.13 [+0.36] # 16.13 [+0.00] TEST: testns-8cvOJA: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.50 [+0.38] # 16.50 [+0.00] TEST: testns-8cvOJA: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.81 [+0.31] # 16.81 [+0.00] TEST: testns-8cvOJA: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.14 [+0.33] # 17.14 [+0.00] TEST: testns-8cvOJA: disable strict_mode (=0) [ OK ] # 17.45 [+0.31] # 17.45 [+0.00] TEST: testns-8cvOJA: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.78 [+0.33] # 17.78 [+0.00] TEST: testns-8cvOJA: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.78 [+0.00] # 17.78 [+0.00] ################################################################################ # 17.79 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.79 [+0.00] ################################################################################ # 18.04 [+0.25] # 18.04 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.49 [+0.45] # 18.49 [+0.00] TEST: testns-8cvOJA: check strict_mode=0 [ OK ] # 18.70 [+0.21] # 18.70 [+0.00] TEST: testns-8cvOJA: remove vrf vrf101 [ OK ] # 18.92 [+0.22] # 18.92 [+0.00] TEST: testns-8cvOJA: remove vrf vrf102 [ OK ] # 19.09 [+0.17] # 19.09 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.40 [+0.31] # 19.40 [+0.00] TEST: testns-8cvOJA: enable strict_mode (=1) [ OK ] # 19.56 [+0.16] # 19.56 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.73 [+0.17] # 19.73 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.05 [+0.32] # 20.05 [+0.00] TEST: testns-8cvOJA: disable strict_mode (=0) [ OK ] # 20.37 [+0.32] # 20.37 [+0.00] TEST: testns-8cvOJA: disable strict_mode (=0) [ OK ] # 20.66 [+0.29] # 20.66 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.11 [+0.45] # 21.11 [+0.00] TEST: testns-8cvOJA: check strict_mode=0 [ OK ] # 22.15 [+1.04] # 22.15 [+0.00] Tests passed: 37 # 22.15 [+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__->