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.76 [+2.76] # 2.76 [+0.00] ################################################################################ # 2.76 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.77 [+0.00] ################################################################################ # 3.11 [+0.35] name: vrf # 3.11 [+0.00] filename: (builtin) # 6.14 [+3.03] version: 1.1 # 6.14 [+0.00] alias: rtnl-link-vrf # 6.14 [+0.00] license: GPL # 6.15 [+0.00] file: drivers/net/vrf # 6.15 [+0.00] description: Device driver to instantiate VRF domains # 6.15 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.44 [+0.29] # 6.44 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.85 [+0.41] # 6.85 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.17 [+0.33] # 7.17 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.48 [+0.31] # 7.48 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.64 [+0.15] # 7.64 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.02 [+0.39] # 8.02 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.19 [+0.17] # 8.19 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.51 [+0.31] # 8.51 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.85 [+0.34] # 8.85 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.00 [+0.16] # 9.00 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.24 [+0.23] # 9.24 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.39 [+0.15] # 9.39 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.73 [+0.34] # 9.73 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.05 [+0.32] # 10.05 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.05 [+0.00] # 10.05 [+0.00] ################################################################################ # 10.05 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.06 [+0.00] ################################################################################ # 10.38 [+0.32] name: vrf # 10.38 [+0.00] filename: (builtin) # 13.56 [+3.18] version: 1.1 # 13.56 [+0.00] alias: rtnl-link-vrf # 13.57 [+0.00] license: GPL # 13.57 [+0.00] file: drivers/net/vrf # 13.57 [+0.00] description: Device driver to instantiate VRF domains # 13.57 [+0.00] author: Shrijeet Mukherjee, David Ahern # 14.00 [+0.43] # 14.00 [+0.00] TEST: testns-2hsWxV: net.vrf.strict_mode is available [ OK ] # 14.60 [+0.60] # 14.60 [+0.00] TEST: testns-2hsWxV: strict_mode=0 by default, 0 vrfs [ OK ] # 14.91 [+0.31] # 14.91 [+0.00] TEST: testns-2hsWxV: enable strict_mode (=1) [ OK ] # 15.25 [+0.34] # 15.25 [+0.00] TEST: testns-2hsWxV: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.57 [+0.32] # 15.57 [+0.00] TEST: testns-2hsWxV: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.94 [+0.37] # 15.94 [+0.00] TEST: testns-2hsWxV: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 16.34 [+0.39] # 16.34 [+0.00] TEST: testns-2hsWxV: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.65 [+0.31] # 16.65 [+0.00] TEST: testns-2hsWxV: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.98 [+0.33] # 16.98 [+0.00] TEST: testns-2hsWxV: disable strict_mode (=0) [ OK ] # 17.31 [+0.32] # 17.31 [+0.00] TEST: testns-2hsWxV: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.66 [+0.35] # 17.66 [+0.00] TEST: testns-2hsWxV: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.66 [+0.00] # 17.66 [+0.00] ################################################################################ # 17.67 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.67 [+0.00] ################################################################################ # 17.93 [+0.26] # 17.93 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 18.32 [+0.39] # 18.32 [+0.00] TEST: testns-2hsWxV: check strict_mode=0 [ OK ] # 18.54 [+0.22] # 18.54 [+0.00] TEST: testns-2hsWxV: remove vrf vrf101 [ OK ] # 18.77 [+0.23] # 18.77 [+0.00] TEST: testns-2hsWxV: remove vrf vrf102 [ OK ] # 18.93 [+0.15] # 18.93 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 19.24 [+0.31] # 19.24 [+0.00] TEST: testns-2hsWxV: enable strict_mode (=1) [ OK ] # 19.39 [+0.15] # 19.39 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.55 [+0.16] # 19.55 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.86 [+0.31] # 19.86 [+0.00] TEST: testns-2hsWxV: disable strict_mode (=0) [ OK ] # 20.16 [+0.31] # 20.16 [+0.00] TEST: testns-2hsWxV: disable strict_mode (=0) [ OK ] # 20.43 [+0.27] # 20.43 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.86 [+0.42] # 20.86 [+0.00] TEST: testns-2hsWxV: check strict_mode=0 [ OK ] # 21.86 [+1.00] # 21.86 [+0.00] Tests passed: 37 # 21.86 [+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__->