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/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' 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.11 [+2.11] # 2.11 [+0.00] ################################################################################ # 2.11 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.11 [+0.00] ################################################################################ # 2.40 [+0.29] name: vrf # 2.40 [+0.00] filename: (builtin) # 2.41 [+0.01] version: 1.1 # 2.41 [+0.00] alias: rtnl-link-vrf # 2.41 [+0.00] license: GPL # 2.41 [+0.00] file: drivers/net/vrf # 2.41 [+0.00] description: Device driver to instantiate VRF domains # 2.42 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.60 [+0.19] # 2.60 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.93 [+0.33] # 2.93 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.26 [+0.33] # 3.26 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.51 [+0.25] # 3.51 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.62 [+0.11] # 3.62 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.95 [+0.33] # 3.95 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.04 [+0.10] # 4.05 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.35 [+0.30] # 4.35 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.55 [+0.20] # 4.55 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.66 [+0.11] # 4.66 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.81 [+0.15] # 4.81 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.93 [+0.12] # 4.93 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.21 [+0.28] # 5.21 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.45 [+0.24] # 5.45 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.45 [+0.00] # 5.45 [+0.00] ################################################################################ # 5.46 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.46 [+0.00] ################################################################################ # 5.76 [+0.30] name: vrf # 5.76 [+0.00] filename: (builtin) # 5.77 [+0.01] version: 1.1 # 5.77 [+0.00] alias: rtnl-link-vrf # 5.77 [+0.00] license: GPL # 5.77 [+0.00] file: drivers/net/vrf # 5.77 [+0.00] description: Device driver to instantiate VRF domains # 5.77 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.03 [+0.25] # 6.03 [+0.00] TEST: testns-D1nfrv: net.vrf.strict_mode is available [ OK ] # 6.47 [+0.44] # 6.47 [+0.00] TEST: testns-D1nfrv: strict_mode=0 by default, 0 vrfs [ OK ] # 6.67 [+0.20] # 6.67 [+0.00] TEST: testns-D1nfrv: enable strict_mode (=1) [ OK ] # 6.96 [+0.29] # 6.96 [+0.00] TEST: testns-D1nfrv: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.20 [+0.24] # 7.20 [+0.00] TEST: testns-D1nfrv: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.51 [+0.31] # 7.51 [+0.00] TEST: testns-D1nfrv: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.84 [+0.32] # 7.84 [+0.00] TEST: testns-D1nfrv: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.16 [+0.32] # 8.16 [+0.00] TEST: testns-D1nfrv: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.35 [+0.19] # 8.36 [+0.01] TEST: testns-D1nfrv: disable strict_mode (=0) [ OK ] # 8.65 [+0.29] # 8.65 [+0.00] TEST: testns-D1nfrv: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.95 [+0.30] # 8.95 [+0.00] TEST: testns-D1nfrv: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 8.95 [+0.00] # 8.95 [+0.00] ################################################################################ # 8.95 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 8.96 [+0.00] ################################################################################ # 9.12 [+0.16] # 9.12 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.39 [+0.27] # 9.39 [+0.00] TEST: testns-D1nfrv: check strict_mode=0 [ OK ] # 9.57 [+0.18] # 9.57 [+0.00] TEST: testns-D1nfrv: remove vrf vrf101 [ OK ] # 9.73 [+0.16] # 9.73 [+0.00] TEST: testns-D1nfrv: remove vrf vrf102 [ OK ] # 9.85 [+0.12] # 9.85 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.04 [+0.19] # 10.04 [+0.00] TEST: testns-D1nfrv: enable strict_mode (=1) [ OK ] # 10.15 [+0.11] # 10.15 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.24 [+0.09] # 10.24 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.44 [+0.20] # 10.44 [+0.00] TEST: testns-D1nfrv: disable strict_mode (=0) [ OK ] # 10.64 [+0.19] # 10.64 [+0.00] TEST: testns-D1nfrv: disable strict_mode (=0) [ OK ] # 10.83 [+0.20] # 10.83 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.12 [+0.29] # 11.12 [+0.00] TEST: testns-D1nfrv: check strict_mode=0 [ OK ] # 11.84 [+0.72] # 11.84 [+0.00] Tests passed: 37 # 11.84 [+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__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->