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-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: vrf_strict_mode_test.sh # 0.16 [+0.16] # 0.16 [+0.00] ################################################################################ # 0.16 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 0.16 [+0.00] ################################################################################ # 0.18 [+0.02] name: vrf # 0.18 [+0.00] filename: (builtin) # 0.18 [+0.00] version: 1.1 # 0.18 [+0.00] alias: rtnl-link-vrf # 0.18 [+0.00] license: GPL # 0.18 [+0.00] file: drivers/net/vrf # 0.18 [+0.00] description: Device driver to instantiate VRF domains # 0.18 [+0.00] author: Shrijeet Mukherjee, David Ahern # 0.20 [+0.01] # 0.20 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 0.22 [+0.03] # 0.22 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 0.25 [+0.03] # 0.25 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 0.27 [+0.02] # 0.27 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 0.28 [+0.01] # 0.28 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.32 [+0.04] # 0.32 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 0.33 [+0.01] # 0.33 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 0.35 [+0.02] # 0.36 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 0.37 [+0.02] # 0.37 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 0.38 [+0.01] # 0.38 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 0.41 [+0.03] # 0.41 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 0.42 [+0.01] # 0.42 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.45 [+0.03] # 0.45 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 0.47 [+0.02] # 0.47 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 0.47 [+0.00] # 0.47 [+0.00] ################################################################################ # 0.47 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 0.48 [+0.00] ################################################################################ # 0.49 [+0.01] name: vrf # 0.49 [+0.00] filename: (builtin) # 0.49 [+0.00] version: 1.1 # 0.50 [+0.00] alias: rtnl-link-vrf # 0.50 [+0.00] license: GPL # 0.50 [+0.00] file: drivers/net/vrf # 0.50 [+0.00] description: Device driver to instantiate VRF domains # 0.50 [+0.00] author: Shrijeet Mukherjee, David Ahern # 0.52 [+0.02] # 0.52 [+0.00] TEST: testns-qJ3rP1: net.vrf.strict_mode is available [ OK ] # 0.55 [+0.03] # 0.55 [+0.00] TEST: testns-qJ3rP1: strict_mode=0 by default, 0 vrfs [ OK ] # 0.57 [+0.02] # 0.57 [+0.00] TEST: testns-qJ3rP1: enable strict_mode (=1) [ OK ] # 0.59 [+0.02] # 0.59 [+0.00] TEST: testns-qJ3rP1: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 0.61 [+0.02] # 0.61 [+0.00] TEST: testns-qJ3rP1: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 0.66 [+0.05] # 0.66 [+0.00] TEST: testns-qJ3rP1: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 0.73 [+0.06] # 0.73 [+0.00] TEST: testns-qJ3rP1: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 0.75 [+0.02] # 0.75 [+0.00] TEST: testns-qJ3rP1: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 0.76 [+0.02] # 0.76 [+0.00] TEST: testns-qJ3rP1: disable strict_mode (=0) [ OK ] # 0.78 [+0.02] # 0.78 [+0.00] TEST: testns-qJ3rP1: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 0.80 [+0.02] # 0.80 [+0.00] TEST: testns-qJ3rP1: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 0.81 [+0.00] # 0.81 [+0.00] ################################################################################ # 0.81 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 0.81 [+0.00] ################################################################################ # 0.82 [+0.01] # 0.82 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 0.84 [+0.02] # 0.84 [+0.00] TEST: testns-qJ3rP1: check strict_mode=0 [ OK ] # 0.88 [+0.04] # 0.88 [+0.00] TEST: testns-qJ3rP1: remove vrf vrf101 [ OK ] # 0.92 [+0.04] # 0.92 [+0.00] TEST: testns-qJ3rP1: remove vrf vrf102 [ OK ] # 0.93 [+0.01] # 0.93 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 0.95 [+0.02] # 0.95 [+0.00] TEST: testns-qJ3rP1: enable strict_mode (=1) [ OK ] # 0.96 [+0.01] # 0.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.97 [+0.01] # 0.97 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.98 [+0.02] # 0.99 [+0.00] TEST: testns-qJ3rP1: disable strict_mode (=0) [ OK ] # 1.00 [+0.02] # 1.00 [+0.00] TEST: testns-qJ3rP1: disable strict_mode (=0) [ OK ] # 1.02 [+0.02] # 1.02 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 1.04 [+0.02] # 1.04 [+0.00] TEST: testns-qJ3rP1: check strict_mode=0 [ OK ] # 1.22 [+0.17] # 1.22 [+0.00] Tests passed: 37 # 1.22 [+0.00] Tests failed: 0 ok 1 selftests: net: vrf_strict_mode_test.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->