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.42 [+2.42] # 2.42 [+0.00] ################################################################################ # 2.42 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.42 [+0.00] ################################################################################ # 2.74 [+0.32] name: vrf # 2.75 [+0.00] filename: (builtin) # 6.04 [+3.29] version: 1.1 # 6.04 [+0.00] alias: rtnl-link-vrf # 6.04 [+0.00] license: GPL # 6.04 [+0.00] file: drivers/net/vrf # 6.04 [+0.00] description: Device driver to instantiate VRF domains # 6.04 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.31 [+0.27] # 6.31 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.72 [+0.41] # 6.72 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.01 [+0.29] # 7.01 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.33 [+0.32] # 7.33 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.50 [+0.17] # 7.50 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.86 [+0.36] # 7.86 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.01 [+0.15] # 8.01 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.32 [+0.31] # 8.32 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.63 [+0.31] # 8.63 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.78 [+0.15] # 8.78 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 9.01 [+0.23] # 9.01 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 9.16 [+0.14] # 9.16 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 9.46 [+0.30] # 9.46 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.76 [+0.30] # 9.76 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.76 [+0.00] # 9.76 [+0.00] ################################################################################ # 9.76 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.76 [+0.00] ################################################################################ # 10.06 [+0.30] name: vrf # 10.06 [+0.00] filename: (builtin) # 13.24 [+3.18] version: 1.1 # 13.24 [+0.00] alias: rtnl-link-vrf # 13.24 [+0.00] license: GPL # 13.24 [+0.00] file: drivers/net/vrf # 13.24 [+0.00] description: Device driver to instantiate VRF domains # 13.25 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.67 [+0.42] # 13.67 [+0.00] TEST: testns-hbcYh6: net.vrf.strict_mode is available [ OK ] # 14.21 [+0.55] # 14.21 [+0.00] TEST: testns-hbcYh6: strict_mode=0 by default, 0 vrfs [ OK ] # 14.52 [+0.30] # 14.52 [+0.00] TEST: testns-hbcYh6: enable strict_mode (=1) [ OK ] # 14.83 [+0.31] # 14.83 [+0.00] TEST: testns-hbcYh6: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 15.14 [+0.31] # 15.14 [+0.00] TEST: testns-hbcYh6: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 15.49 [+0.35] # 15.49 [+0.00] TEST: testns-hbcYh6: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.86 [+0.37] # 15.86 [+0.00] TEST: testns-hbcYh6: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 16.17 [+0.31] # 16.17 [+0.00] TEST: testns-hbcYh6: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 16.48 [+0.31] # 16.48 [+0.00] TEST: testns-hbcYh6: disable strict_mode (=0) [ OK ] # 16.79 [+0.31] # 16.79 [+0.00] TEST: testns-hbcYh6: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 17.11 [+0.31] # 17.11 [+0.00] TEST: testns-hbcYh6: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 17.11 [+0.00] # 17.11 [+0.00] ################################################################################ # 17.11 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 17.12 [+0.00] ################################################################################ # 17.35 [+0.24] # 17.36 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.75 [+0.39] # 17.75 [+0.00] TEST: testns-hbcYh6: check strict_mode=0 [ OK ] # 17.95 [+0.20] # 17.95 [+0.00] TEST: testns-hbcYh6: remove vrf vrf101 [ OK ] # 18.16 [+0.21] # 18.16 [+0.00] TEST: testns-hbcYh6: remove vrf vrf102 [ OK ] # 18.31 [+0.15] # 18.31 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.60 [+0.29] # 18.60 [+0.00] TEST: testns-hbcYh6: enable strict_mode (=1) [ OK ] # 18.73 [+0.14] # 18.73 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.88 [+0.14] # 18.88 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 19.17 [+0.29] # 19.17 [+0.00] TEST: testns-hbcYh6: disable strict_mode (=0) [ OK ] # 19.45 [+0.28] # 19.45 [+0.00] TEST: testns-hbcYh6: disable strict_mode (=0) [ OK ] # 19.69 [+0.25] # 19.69 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 20.07 [+0.37] # 20.07 [+0.00] TEST: testns-hbcYh6: check strict_mode=0 [ OK ] # 20.99 [+0.92] # 20.99 [+0.00] Tests passed: 37 # 20.99 [+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__->