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.34 [+2.34] # 2.34 [+0.00] ################################################################################ # 2.34 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.35 [+0.00] ################################################################################ # 2.71 [+0.36] name: vrf # 2.71 [+0.00] filename: (builtin) # 5.80 [+3.09] version: 1.1 # 5.80 [+0.00] alias: rtnl-link-vrf # 5.80 [+0.00] license: GPL # 5.80 [+0.00] file: drivers/net/vrf # 5.80 [+0.00] description: Device driver to instantiate VRF domains # 5.80 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.05 [+0.25] # 6.05 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.43 [+0.38] # 6.43 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.76 [+0.33] # 6.76 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.99 [+0.23] # 6.99 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.16 [+0.17] # 7.16 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.49 [+0.33] # 7.49 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.64 [+0.15] # 7.64 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.94 [+0.29] # 7.94 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.22 [+0.28] # 8.22 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.37 [+0.15] # 8.37 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.61 [+0.23] # 8.61 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.75 [+0.14] # 8.75 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.06 [+0.31] # 9.06 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.36 [+0.30] # 9.36 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.36 [+0.00] # 9.36 [+0.00] ################################################################################ # 9.36 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.36 [+0.00] ################################################################################ # 9.66 [+0.29] name: vrf # 9.66 [+0.00] filename: (builtin) # 12.75 [+3.09] version: 1.1 # 12.75 [+0.00] alias: rtnl-link-vrf # 12.75 [+0.00] license: GPL # 12.75 [+0.00] file: drivers/net/vrf # 12.75 [+0.00] description: Device driver to instantiate VRF domains # 12.75 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.16 [+0.41] # 13.16 [+0.00] TEST: testns-4KWR9v: net.vrf.strict_mode is available [ OK ] # 13.69 [+0.53] # 13.69 [+0.00] TEST: testns-4KWR9v: strict_mode=0 by default, 0 vrfs [ OK ] # 13.97 [+0.28] # 13.97 [+0.00] TEST: testns-4KWR9v: enable strict_mode (=1) [ OK ] # 14.26 [+0.29] # 14.26 [+0.00] TEST: testns-4KWR9v: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.57 [+0.31] # 14.57 [+0.00] TEST: testns-4KWR9v: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.91 [+0.34] # 14.91 [+0.00] TEST: testns-4KWR9v: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.26 [+0.35] # 15.26 [+0.00] TEST: testns-4KWR9v: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.56 [+0.30] # 15.56 [+0.00] TEST: testns-4KWR9v: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.86 [+0.30] # 15.86 [+0.00] TEST: testns-4KWR9v: disable strict_mode (=0) [ OK ] # 16.15 [+0.28] # 16.15 [+0.00] TEST: testns-4KWR9v: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.45 [+0.30] # 16.45 [+0.00] TEST: testns-4KWR9v: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.45 [+0.00] # 16.45 [+0.00] ################################################################################ # 16.45 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.45 [+0.00] ################################################################################ # 16.70 [+0.24] # 16.70 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.10 [+0.40] # 17.10 [+0.00] TEST: testns-4KWR9v: check strict_mode=0 [ OK ] # 17.30 [+0.20] # 17.30 [+0.00] TEST: testns-4KWR9v: remove vrf vrf101 [ OK ] # 17.51 [+0.21] # 17.51 [+0.00] TEST: testns-4KWR9v: remove vrf vrf102 [ OK ] # 17.67 [+0.15] # 17.67 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 17.95 [+0.28] # 17.95 [+0.00] TEST: testns-4KWR9v: enable strict_mode (=1) [ OK ] # 18.11 [+0.16] # 18.11 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.25 [+0.14] # 18.25 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.54 [+0.29] # 18.54 [+0.00] TEST: testns-4KWR9v: disable strict_mode (=0) [ OK ] # 18.83 [+0.29] # 18.83 [+0.00] TEST: testns-4KWR9v: disable strict_mode (=0) [ OK ] # 19.10 [+0.26] # 19.10 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.50 [+0.40] # 19.50 [+0.00] TEST: testns-4KWR9v: check strict_mode=0 [ OK ] # 20.46 [+0.96] # 20.46 [+0.00] Tests passed: 37 # 20.46 [+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__->