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.53 [+2.53] # 2.53 [+0.00] ################################################################################ # 2.53 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.54 [+0.00] ################################################################################ # 2.86 [+0.32] name: vrf # 2.86 [+0.00] filename: (builtin) # 6.13 [+3.27] version: 1.1 # 6.13 [+0.00] alias: rtnl-link-vrf # 6.13 [+0.00] license: GPL # 6.13 [+0.00] file: drivers/net/vrf # 6.14 [+0.00] description: Device driver to instantiate VRF domains # 6.14 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.41 [+0.28] # 6.41 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.83 [+0.42] # 6.83 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.15 [+0.32] # 7.15 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.48 [+0.33] # 7.48 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.65 [+0.17] # 7.65 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.99 [+0.33] # 7.99 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.16 [+0.17] # 8.16 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.46 [+0.30] # 8.46 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.80 [+0.33] # 8.80 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.96 [+0.16] # 8.96 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.20 [+0.24] # 9.20 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.37 [+0.17] # 9.37 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.69 [+0.32] # 9.69 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.00 [+0.31] # 10.00 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.00 [+0.00] # 10.00 [+0.00] ################################################################################ # 10.00 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.00 [+0.00] ################################################################################ # 10.31 [+0.31] name: vrf # 10.32 [+0.00] filename: (builtin) # 13.62 [+3.31] version: 1.1 # 13.62 [+0.00] alias: rtnl-link-vrf # 13.63 [+0.00] license: GPL # 13.63 [+0.00] file: drivers/net/vrf # 13.63 [+0.00] description: Device driver to instantiate VRF domains # 13.63 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.06 [+0.43] # 14.06 [+0.00] TEST: testns-zn8A9P: net.vrf.strict_mode is available [ OK ] # 14.62 [+0.55] # 14.62 [+0.00] TEST: testns-zn8A9P: strict_mode=0 by default, 0 vrfs [ OK ] # 14.93 [+0.31] # 14.93 [+0.00] TEST: testns-zn8A9P: enable strict_mode (=1) [ OK ] # 15.25 [+0.32] # 15.25 [+0.00] TEST: testns-zn8A9P: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.57 [+0.33] # 15.57 [+0.00] TEST: testns-zn8A9P: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.92 [+0.35] # 15.92 [+0.00] TEST: testns-zn8A9P: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.31 [+0.39] # 16.31 [+0.00] TEST: testns-zn8A9P: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.63 [+0.31] # 16.63 [+0.00] TEST: testns-zn8A9P: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.95 [+0.32] # 16.95 [+0.00] TEST: testns-zn8A9P: disable strict_mode (=0) [ OK ] # 17.25 [+0.30] # 17.25 [+0.00] TEST: testns-zn8A9P: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.58 [+0.33] # 17.58 [+0.00] TEST: testns-zn8A9P: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.58 [+0.00] # 17.58 [+0.00] ################################################################################ # 17.59 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.59 [+0.00] ################################################################################ # 17.86 [+0.27] # 17.86 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.26 [+0.40] # 18.26 [+0.00] TEST: testns-zn8A9P: check strict_mode=0 [ OK ] # 18.48 [+0.22] # 18.48 [+0.00] TEST: testns-zn8A9P: remove vrf vrf101 [ OK ] # 18.70 [+0.22] # 18.70 [+0.00] TEST: testns-zn8A9P: remove vrf vrf102 [ OK ] # 18.86 [+0.15] # 18.86 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.18 [+0.32] # 19.18 [+0.00] TEST: testns-zn8A9P: enable strict_mode (=1) [ OK ] # 19.34 [+0.16] # 19.34 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.49 [+0.15] # 19.49 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.81 [+0.32] # 19.81 [+0.00] TEST: testns-zn8A9P: disable strict_mode (=0) [ OK ] # 20.13 [+0.32] # 20.13 [+0.00] TEST: testns-zn8A9P: disable strict_mode (=0) [ OK ] # 20.39 [+0.26] # 20.39 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.81 [+0.42] # 20.81 [+0.00] TEST: testns-zn8A9P: check strict_mode=0 [ OK ] # 21.80 [+0.99] # 21.80 [+0.00] Tests passed: 37 # 21.80 [+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__->