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 # 1.30 [+1.30] # 1.30 [+0.00] ################################################################################ # 1.31 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.31 [+0.00] ################################################################################ # 1.52 [+0.21] name: vrf # 1.52 [+0.00] filename: (builtin) # 1.53 [+0.01] version: 1.1 # 1.53 [+0.00] alias: rtnl-link-vrf # 1.53 [+0.00] license: GPL # 1.53 [+0.00] file: drivers/net/vrf # 1.53 [+0.00] description: Device driver to instantiate VRF domains # 1.53 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.66 [+0.12] # 1.66 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 1.90 [+0.24] # 1.90 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.10 [+0.20] # 2.10 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.26 [+0.17] # 2.26 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.35 [+0.08] # 2.35 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.61 [+0.26] # 2.61 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.69 [+0.09] # 2.69 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 2.91 [+0.22] # 2.91 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 3.08 [+0.17] # 3.08 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 3.15 [+0.07] # 3.15 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.31 [+0.15] # 3.31 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.37 [+0.07] # 3.37 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.57 [+0.20] # 3.57 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 3.75 [+0.18] # 3.75 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 3.76 [+0.00] # 3.76 [+0.00] ################################################################################ # 3.76 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 3.76 [+0.00] ################################################################################ # 3.97 [+0.21] name: vrf # 3.97 [+0.00] filename: (builtin) # 3.98 [+0.01] version: 1.1 # 3.98 [+0.00] alias: rtnl-link-vrf # 3.98 [+0.00] license: GPL # 3.98 [+0.00] file: drivers/net/vrf # 3.98 [+0.00] description: Device driver to instantiate VRF domains # 3.98 [+0.00] author: Shrijeet Mukherjee, David Ahern # 4.19 [+0.21] # 4.19 [+0.00] TEST: testns-7Sap8x: net.vrf.strict_mode is available [ OK ] # 4.49 [+0.30] # 4.49 [+0.00] TEST: testns-7Sap8x: strict_mode=0 by default, 0 vrfs [ OK ] # 4.64 [+0.15] # 4.64 [+0.00] TEST: testns-7Sap8x: enable strict_mode (=1) [ OK ] # 4.85 [+0.21] # 4.85 [+0.00] TEST: testns-7Sap8x: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 5.01 [+0.16] # 5.01 [+0.00] TEST: testns-7Sap8x: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 5.26 [+0.25] # 5.26 [+0.00] TEST: testns-7Sap8x: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.55 [+0.28] # 5.55 [+0.00] TEST: testns-7Sap8x: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 5.75 [+0.21] # 5.75 [+0.00] TEST: testns-7Sap8x: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 5.90 [+0.14] # 5.90 [+0.00] TEST: testns-7Sap8x: disable strict_mode (=0) [ OK ] # 6.10 [+0.20] # 6.10 [+0.00] TEST: testns-7Sap8x: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 6.31 [+0.21] # 6.31 [+0.00] TEST: testns-7Sap8x: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 6.31 [+0.00] # 6.31 [+0.00] ################################################################################ # 6.31 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 6.32 [+0.00] ################################################################################ # 6.43 [+0.11] # 6.43 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.63 [+0.20] # 6.63 [+0.00] TEST: testns-7Sap8x: check strict_mode=0 [ OK ] # 6.77 [+0.13] # 6.77 [+0.00] TEST: testns-7Sap8x: remove vrf vrf101 [ OK ] # 6.92 [+0.16] # 6.92 [+0.00] TEST: testns-7Sap8x: remove vrf vrf102 [ OK ] # 6.99 [+0.07] # 6.99 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.12 [+0.13] # 7.12 [+0.00] TEST: testns-7Sap8x: enable strict_mode (=1) [ OK ] # 7.18 [+0.06] # 7.18 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.25 [+0.07] # 7.25 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.38 [+0.13] # 7.38 [+0.00] TEST: testns-7Sap8x: disable strict_mode (=0) [ OK ] # 7.53 [+0.14] # 7.53 [+0.00] TEST: testns-7Sap8x: disable strict_mode (=0) [ OK ] # 7.67 [+0.14] # 7.67 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.87 [+0.20] # 7.87 [+0.00] TEST: testns-7Sap8x: check strict_mode=0 [ OK ] # 8.46 [+0.59] # 8.46 [+0.00] Tests passed: 37 # 8.47 [+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__->