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.21 [+1.21] # 1.21 [+0.00] ################################################################################ # 1.21 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.21 [+0.00] ################################################################################ # 1.45 [+0.23] name: vrf # 1.45 [+0.00] filename: (builtin) # 1.46 [+0.01] version: 1.1 # 1.46 [+0.00] alias: rtnl-link-vrf # 1.46 [+0.00] license: GPL # 1.46 [+0.00] file: drivers/net/vrf # 1.46 [+0.00] description: Device driver to instantiate VRF domains # 1.46 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.59 [+0.13] # 1.59 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 1.80 [+0.21] # 1.80 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.01 [+0.21] # 2.01 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.17 [+0.16] # 2.17 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.25 [+0.08] # 2.25 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.48 [+0.23] # 2.48 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.57 [+0.09] # 2.57 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 2.80 [+0.23] # 2.80 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 2.96 [+0.16] # 2.96 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 3.03 [+0.07] # 3.03 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.18 [+0.15] # 3.18 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.25 [+0.07] # 3.25 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.45 [+0.20] # 3.45 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 3.62 [+0.17] # 3.62 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 3.62 [+0.00] # 3.62 [+0.00] ################################################################################ # 3.63 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 3.63 [+0.00] ################################################################################ # 3.82 [+0.18] name: vrf # 3.82 [+0.00] filename: (builtin) # 3.83 [+0.01] version: 1.1 # 3.83 [+0.00] alias: rtnl-link-vrf # 3.83 [+0.00] license: GPL # 3.83 [+0.00] file: drivers/net/vrf # 3.83 [+0.00] description: Device driver to instantiate VRF domains # 3.83 [+0.00] author: Shrijeet Mukherjee, David Ahern # 4.03 [+0.20] # 4.03 [+0.00] TEST: testns-nuxgOM: net.vrf.strict_mode is available [ OK ] # 4.32 [+0.29] # 4.32 [+0.00] TEST: testns-nuxgOM: strict_mode=0 by default, 0 vrfs [ OK ] # 4.46 [+0.14] # 4.46 [+0.00] TEST: testns-nuxgOM: enable strict_mode (=1) [ OK ] # 4.66 [+0.21] # 4.66 [+0.00] TEST: testns-nuxgOM: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.83 [+0.17] # 4.83 [+0.00] TEST: testns-nuxgOM: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 5.07 [+0.24] # 5.07 [+0.00] TEST: testns-nuxgOM: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.34 [+0.26] # 5.34 [+0.00] TEST: testns-nuxgOM: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 5.56 [+0.22] # 5.56 [+0.00] TEST: testns-nuxgOM: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 5.69 [+0.13] # 5.69 [+0.00] TEST: testns-nuxgOM: disable strict_mode (=0) [ OK ] # 5.88 [+0.19] # 5.88 [+0.00] TEST: testns-nuxgOM: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 6.08 [+0.20] # 6.08 [+0.00] TEST: testns-nuxgOM: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 6.08 [+0.00] # 6.08 [+0.00] ################################################################################ # 6.09 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 6.09 [+0.00] ################################################################################ # 6.22 [+0.13] # 6.22 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.41 [+0.19] # 6.41 [+0.00] TEST: testns-nuxgOM: check strict_mode=0 [ OK ] # 6.55 [+0.14] # 6.55 [+0.00] TEST: testns-nuxgOM: remove vrf vrf101 [ OK ] # 6.70 [+0.15] # 6.70 [+0.00] TEST: testns-nuxgOM: remove vrf vrf102 [ OK ] # 6.76 [+0.06] # 6.76 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 6.89 [+0.14] # 6.89 [+0.00] TEST: testns-nuxgOM: enable strict_mode (=1) [ OK ] # 6.97 [+0.08] # 6.97 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.05 [+0.07] # 7.05 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.18 [+0.14] # 7.18 [+0.00] TEST: testns-nuxgOM: disable strict_mode (=0) [ OK ] # 7.33 [+0.15] # 7.33 [+0.00] TEST: testns-nuxgOM: disable strict_mode (=0) [ OK ] # 7.45 [+0.11] # 7.45 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.63 [+0.19] # 7.64 [+0.00] TEST: testns-nuxgOM: check strict_mode=0 [ OK ] # 8.35 [+0.71] # 8.35 [+0.00] Tests passed: 37 # 8.35 [+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__->