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.16 [+2.16] # 2.16 [+0.00] ################################################################################ # 2.16 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.16 [+0.00] ################################################################################ # 2.44 [+0.28] name: vrf # 2.44 [+0.00] filename: (builtin) # 2.46 [+0.01] version: 1.1 # 2.46 [+0.00] alias: rtnl-link-vrf # 2.46 [+0.00] license: GPL # 2.46 [+0.00] file: drivers/net/vrf # 2.46 [+0.00] description: Device driver to instantiate VRF domains # 2.46 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.64 [+0.18] # 2.64 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.00 [+0.36] # 3.00 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.30 [+0.30] # 3.30 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.55 [+0.24] # 3.55 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.65 [+0.11] # 3.65 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.00 [+0.34] # 4.00 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.11 [+0.11] # 4.11 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.39 [+0.28] # 4.39 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.64 [+0.25] # 4.64 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.74 [+0.10] # 4.74 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.91 [+0.17] # 4.91 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 5.00 [+0.09] # 5.00 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.32 [+0.32] # 5.32 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.56 [+0.24] # 5.56 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.56 [+0.00] # 5.56 [+0.00] ################################################################################ # 5.57 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.57 [+0.00] ################################################################################ # 5.87 [+0.30] name: vrf # 5.87 [+0.00] filename: (builtin) # 5.88 [+0.01] version: 1.1 # 5.88 [+0.00] alias: rtnl-link-vrf # 5.88 [+0.00] license: GPL # 5.88 [+0.00] file: drivers/net/vrf # 5.88 [+0.00] description: Device driver to instantiate VRF domains # 5.88 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.17 [+0.29] # 6.17 [+0.00] TEST: testns-og1mja: net.vrf.strict_mode is available [ OK ] # 6.60 [+0.43] # 6.60 [+0.00] TEST: testns-og1mja: strict_mode=0 by default, 0 vrfs [ OK ] # 6.80 [+0.20] # 6.80 [+0.00] TEST: testns-og1mja: enable strict_mode (=1) [ OK ] # 7.09 [+0.29] # 7.09 [+0.00] TEST: testns-og1mja: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.34 [+0.25] # 7.34 [+0.00] TEST: testns-og1mja: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.69 [+0.35] # 7.71 [+0.02] TEST: testns-og1mja: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.07 [+0.36] # 8.07 [+0.00] TEST: testns-og1mja: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.36 [+0.29] # 8.36 [+0.00] TEST: testns-og1mja: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.57 [+0.21] # 8.57 [+0.00] TEST: testns-og1mja: disable strict_mode (=0) [ OK ] # 8.87 [+0.29] # 8.87 [+0.00] TEST: testns-og1mja: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.17 [+0.30] # 9.17 [+0.00] TEST: testns-og1mja: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.17 [+0.00] # 9.17 [+0.00] ################################################################################ # 9.17 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.17 [+0.00] ################################################################################ # 9.37 [+0.20] # 9.38 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.66 [+0.29] # 9.66 [+0.00] TEST: testns-og1mja: check strict_mode=0 [ OK ] # 9.84 [+0.18] # 9.84 [+0.00] TEST: testns-og1mja: remove vrf vrf101 [ OK ] # 10.03 [+0.18] # 10.03 [+0.00] TEST: testns-og1mja: remove vrf vrf102 [ OK ] # 10.13 [+0.10] # 10.13 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.32 [+0.19] # 10.32 [+0.00] TEST: testns-og1mja: enable strict_mode (=1) [ OK ] # 10.41 [+0.09] # 10.41 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.51 [+0.10] # 10.51 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.72 [+0.21] # 10.72 [+0.00] TEST: testns-og1mja: disable strict_mode (=0) [ OK ] # 10.92 [+0.19] # 10.92 [+0.00] TEST: testns-og1mja: disable strict_mode (=0) [ OK ] # 11.09 [+0.17] # 11.09 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.40 [+0.31] # 11.40 [+0.00] TEST: testns-og1mja: check strict_mode=0 [ OK ] # 12.20 [+0.80] # 12.20 [+0.00] Tests passed: 37 # 12.20 [+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__->