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.22 [+1.22] # 1.22 [+0.00] ################################################################################ # 1.23 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.23 [+0.00] ################################################################################ # 1.46 [+0.23] name: vrf # 1.46 [+0.00] filename: (builtin) # 1.48 [+0.02] version: 1.1 # 1.48 [+0.00] alias: rtnl-link-vrf # 1.48 [+0.00] license: GPL # 1.48 [+0.00] file: drivers/net/vrf # 1.48 [+0.00] description: Device driver to instantiate VRF domains # 1.48 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.59 [+0.11] # 1.59 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 1.82 [+0.23] # 1.82 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.00 [+0.18] # 2.00 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.17 [+0.17] # 2.17 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.24 [+0.07] # 2.24 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.50 [+0.26] # 2.50 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.58 [+0.08] # 2.58 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 2.79 [+0.22] # 2.80 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 2.97 [+0.18] # 2.98 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 3.04 [+0.06] # 3.04 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.22 [+0.18] # 3.22 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.28 [+0.07] # 3.28 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.50 [+0.21] # 3.50 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 3.67 [+0.18] # 3.67 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 3.67 [+0.00] # 3.67 [+0.00] ################################################################################ # 3.68 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 3.68 [+0.00] ################################################################################ # 3.87 [+0.19] name: vrf # 3.87 [+0.00] filename: (builtin) # 3.88 [+0.01] version: 1.1 # 3.88 [+0.00] alias: rtnl-link-vrf # 3.88 [+0.00] license: GPL # 3.88 [+0.00] file: drivers/net/vrf # 3.88 [+0.00] description: Device driver to instantiate VRF domains # 3.89 [+0.00] author: Shrijeet Mukherjee, David Ahern # 4.09 [+0.20] # 4.09 [+0.00] TEST: testns-gbCJQH: net.vrf.strict_mode is available [ OK ] # 4.39 [+0.30] # 4.39 [+0.00] TEST: testns-gbCJQH: strict_mode=0 by default, 0 vrfs [ OK ] # 4.52 [+0.14] # 4.52 [+0.00] TEST: testns-gbCJQH: enable strict_mode (=1) [ OK ] # 4.72 [+0.20] # 4.72 [+0.00] TEST: testns-gbCJQH: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.88 [+0.16] # 4.88 [+0.00] TEST: testns-gbCJQH: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 5.12 [+0.24] # 5.12 [+0.00] TEST: testns-gbCJQH: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.39 [+0.26] # 5.39 [+0.00] TEST: testns-gbCJQH: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 5.57 [+0.18] # 5.57 [+0.00] TEST: testns-gbCJQH: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 5.71 [+0.14] # 5.71 [+0.00] TEST: testns-gbCJQH: disable strict_mode (=0) [ OK ] # 5.92 [+0.21] # 5.92 [+0.00] TEST: testns-gbCJQH: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 6.12 [+0.20] # 6.13 [+0.00] TEST: testns-gbCJQH: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 6.13 [+0.00] # 6.13 [+0.00] ################################################################################ # 6.13 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 6.13 [+0.00] ################################################################################ # 6.26 [+0.13] # 6.26 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.47 [+0.21] # 6.47 [+0.00] TEST: testns-gbCJQH: check strict_mode=0 [ OK ] # 6.62 [+0.15] # 6.62 [+0.00] TEST: testns-gbCJQH: remove vrf vrf101 [ OK ] # 6.75 [+0.14] # 6.75 [+0.00] TEST: testns-gbCJQH: remove vrf vrf102 [ OK ] # 6.82 [+0.07] # 6.82 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 6.96 [+0.13] # 6.96 [+0.00] TEST: testns-gbCJQH: enable strict_mode (=1) [ OK ] # 7.03 [+0.07] # 7.03 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.09 [+0.07] # 7.09 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.23 [+0.14] # 7.23 [+0.00] TEST: testns-gbCJQH: disable strict_mode (=0) [ OK ] # 7.37 [+0.13] # 7.37 [+0.00] TEST: testns-gbCJQH: disable strict_mode (=0) [ OK ] # 7.50 [+0.14] # 7.50 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.70 [+0.20] # 7.70 [+0.00] TEST: testns-gbCJQH: check strict_mode=0 [ OK ] # 8.25 [+0.55] # 8.25 [+0.00] Tests passed: 37 # 8.25 [+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__->