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.72 [+2.72] # 2.72 [+0.00] ################################################################################ # 2.72 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.73 [+0.00] ################################################################################ # 3.11 [+0.38] name: vrf # 3.11 [+0.00] filename: (builtin) # 6.64 [+3.53] version: 1.1 # 6.64 [+0.00] alias: rtnl-link-vrf # 6.64 [+0.00] license: GPL # 6.64 [+0.00] file: drivers/net/vrf # 6.64 [+0.00] description: Device driver to instantiate VRF domains # 6.64 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.92 [+0.28] # 6.92 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.38 [+0.45] # 7.38 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.71 [+0.34] # 7.71 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.05 [+0.34] # 8.05 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.22 [+0.16] # 8.22 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.59 [+0.37] # 8.59 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.76 [+0.17] # 8.76 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.09 [+0.33] # 9.09 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.40 [+0.31] # 9.40 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.56 [+0.16] # 9.56 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.81 [+0.25] # 9.81 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.96 [+0.15] # 9.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.27 [+0.31] # 10.27 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.61 [+0.34] # 10.61 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.61 [+0.00] # 10.61 [+0.00] ################################################################################ # 10.61 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.61 [+0.00] ################################################################################ # 10.94 [+0.33] name: vrf # 10.95 [+0.00] filename: (builtin) # 14.45 [+3.51] version: 1.1 # 14.45 [+0.00] alias: rtnl-link-vrf # 14.45 [+0.00] license: GPL # 14.45 [+0.00] file: drivers/net/vrf # 14.46 [+0.00] description: Device driver to instantiate VRF domains # 14.46 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.84 [+0.39] # 14.84 [+0.00] TEST: testns-XDlv3R: net.vrf.strict_mode is available [ OK ] # 15.44 [+0.59] # 15.44 [+0.00] TEST: testns-XDlv3R: strict_mode=0 by default, 0 vrfs [ OK ] # 15.75 [+0.31] # 15.75 [+0.00] TEST: testns-XDlv3R: enable strict_mode (=1) [ OK ] # 16.08 [+0.33] # 16.08 [+0.00] TEST: testns-XDlv3R: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.43 [+0.35] # 16.43 [+0.00] TEST: testns-XDlv3R: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.82 [+0.40] # 16.82 [+0.00] TEST: testns-XDlv3R: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.20 [+0.37] # 17.20 [+0.00] TEST: testns-XDlv3R: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.53 [+0.33] # 17.53 [+0.00] TEST: testns-XDlv3R: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 17.85 [+0.32] # 17.85 [+0.00] TEST: testns-XDlv3R: disable strict_mode (=0) [ OK ] # 18.17 [+0.33] # 18.17 [+0.00] TEST: testns-XDlv3R: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.51 [+0.34] # 18.51 [+0.00] TEST: testns-XDlv3R: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.52 [+0.00] # 18.52 [+0.00] ################################################################################ # 18.52 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.52 [+0.00] ################################################################################ # 18.80 [+0.28] # 18.80 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.21 [+0.41] # 19.21 [+0.00] TEST: testns-XDlv3R: check strict_mode=0 [ OK ] # 19.44 [+0.24] # 19.44 [+0.00] TEST: testns-XDlv3R: remove vrf vrf101 [ OK ] # 19.67 [+0.23] # 19.67 [+0.00] TEST: testns-XDlv3R: remove vrf vrf102 [ OK ] # 19.82 [+0.15] # 19.82 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.14 [+0.32] # 20.14 [+0.00] TEST: testns-XDlv3R: enable strict_mode (=1) [ OK ] # 20.31 [+0.17] # 20.31 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.46 [+0.15] # 20.46 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.77 [+0.30] # 20.77 [+0.00] TEST: testns-XDlv3R: disable strict_mode (=0) [ OK ] # 21.09 [+0.32] # 21.09 [+0.00] TEST: testns-XDlv3R: disable strict_mode (=0) [ OK ] # 21.35 [+0.26] # 21.35 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.78 [+0.44] # 21.79 [+0.00] TEST: testns-XDlv3R: check strict_mode=0 [ OK ] # 22.79 [+1.01] # 22.79 [+0.00] Tests passed: 37 # 22.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__->