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 # 2.32 [+2.32] # 2.32 [+0.00] ################################################################################ # 2.33 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.33 [+0.00] ################################################################################ # 2.65 [+0.32] name: vrf # 2.65 [+0.00] filename: (builtin) # 5.60 [+2.95] version: 1.1 # 5.60 [+0.00] alias: rtnl-link-vrf # 5.60 [+0.00] license: GPL # 5.60 [+0.00] file: drivers/net/vrf # 5.60 [+0.00] description: Device driver to instantiate VRF domains # 5.61 [+0.00] author: Shrijeet Mukherjee, David Ahern # 5.88 [+0.28] # 5.88 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 6.30 [+0.41] # 6.30 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 6.62 [+0.33] # 6.62 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 6.97 [+0.35] # 6.97 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 7.12 [+0.15] # 7.12 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.46 [+0.34] # 7.46 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 7.61 [+0.14] # 7.61 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 7.88 [+0.28] # 7.88 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 8.20 [+0.31] # 8.20 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 8.34 [+0.14] # 8.34 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 8.56 [+0.22] # 8.56 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 8.70 [+0.14] # 8.70 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.99 [+0.29] # 8.99 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 9.29 [+0.29] # 9.29 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 9.29 [+0.00] # 9.29 [+0.00] ################################################################################ # 9.30 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 9.30 [+0.00] ################################################################################ # 9.58 [+0.28] name: vrf # 9.58 [+0.00] filename: (builtin) # 12.77 [+3.19] version: 1.1 # 12.77 [+0.00] alias: rtnl-link-vrf # 12.77 [+0.00] license: GPL # 12.77 [+0.00] file: drivers/net/vrf # 12.77 [+0.00] description: Device driver to instantiate VRF domains # 12.77 [+0.00] author: Shrijeet Mukherjee, David Ahern # 13.19 [+0.42] # 13.19 [+0.00] TEST: testns-Px95QN: net.vrf.strict_mode is available [ OK ] # 13.70 [+0.51] # 13.70 [+0.00] TEST: testns-Px95QN: strict_mode=0 by default, 0 vrfs [ OK ] # 14.00 [+0.30] # 14.00 [+0.00] TEST: testns-Px95QN: enable strict_mode (=1) [ OK ] # 14.33 [+0.32] # 14.33 [+0.00] TEST: testns-Px95QN: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 14.63 [+0.31] # 14.63 [+0.00] TEST: testns-Px95QN: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 14.98 [+0.35] # 14.98 [+0.00] TEST: testns-Px95QN: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 15.36 [+0.37] # 15.36 [+0.00] TEST: testns-Px95QN: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 15.67 [+0.31] # 15.67 [+0.00] TEST: testns-Px95QN: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 15.98 [+0.31] # 15.98 [+0.00] TEST: testns-Px95QN: disable strict_mode (=0) [ OK ] # 16.30 [+0.32] # 16.30 [+0.00] TEST: testns-Px95QN: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 16.59 [+0.29] # 16.59 [+0.00] TEST: testns-Px95QN: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 16.59 [+0.00] # 16.59 [+0.00] ################################################################################ # 16.60 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 16.60 [+0.00] ################################################################################ # 16.85 [+0.25] # 16.85 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 17.26 [+0.41] # 17.26 [+0.00] TEST: testns-Px95QN: check strict_mode=0 [ OK ] # 17.48 [+0.22] # 17.48 [+0.00] TEST: testns-Px95QN: remove vrf vrf101 [ OK ] # 17.70 [+0.22] # 17.70 [+0.00] TEST: testns-Px95QN: remove vrf vrf102 [ OK ] # 17.85 [+0.15] # 17.85 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 18.15 [+0.30] # 18.15 [+0.00] TEST: testns-Px95QN: enable strict_mode (=1) [ OK ] # 18.30 [+0.15] # 18.30 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.45 [+0.15] # 18.45 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 18.75 [+0.30] # 18.75 [+0.00] TEST: testns-Px95QN: disable strict_mode (=0) [ OK ] # 19.06 [+0.30] # 19.06 [+0.00] TEST: testns-Px95QN: disable strict_mode (=0) [ OK ] # 19.30 [+0.24] # 19.30 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.69 [+0.39] # 19.69 [+0.00] TEST: testns-Px95QN: check strict_mode=0 [ OK ] # 20.67 [+0.98] # 20.67 [+0.00] Tests passed: 37 # 20.67 [+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__->