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.23 [+0.23] # 0.23 [+0.00] ################################################################################ # 0.24 [+0.01] TEST SECTION: VRF strict_mode test on init network namespace # 0.24 [+0.00] ################################################################################ # 0.26 [+0.02] name: vrf # 0.26 [+0.00] filename: (builtin) # 0.50 [+0.24] version: 1.1 # 0.50 [+0.00] alias: rtnl-link-vrf # 0.51 [+0.00] license: GPL # 0.51 [+0.00] file: drivers/net/vrf # 0.51 [+0.00] description: Device driver to instantiate VRF domains # 0.51 [+0.00] author: Shrijeet Mukherjee, David Ahern # 0.53 [+0.02] # 0.53 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 0.57 [+0.04] # 0.57 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 0.60 [+0.03] # 0.60 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 0.63 [+0.03] # 0.63 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 0.64 [+0.01] # 0.64 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.69 [+0.05] # 0.69 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 0.71 [+0.02] # 0.71 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 0.73 [+0.02] # 0.73 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 0.76 [+0.03] # 0.76 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 0.78 [+0.02] # 0.78 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 0.83 [+0.06] # 0.83 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 0.85 [+0.02] # 0.85 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 0.88 [+0.03] # 0.88 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 0.91 [+0.03] # 0.91 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 0.92 [+0.00] # 0.92 [+0.00] ################################################################################ # 0.92 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 0.92 [+0.00] ################################################################################ # 0.95 [+0.03] name: vrf # 0.95 [+0.00] filename: (builtin) # 1.14 [+0.19] version: 1.1 # 1.14 [+0.00] alias: rtnl-link-vrf # 1.14 [+0.00] license: GPL # 1.14 [+0.00] file: drivers/net/vrf # 1.15 [+0.00] description: Device driver to instantiate VRF domains # 1.15 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.18 [+0.03] # 1.18 [+0.00] TEST: testns-kfRPbo: net.vrf.strict_mode is available [ OK ] # 1.23 [+0.05] # 1.23 [+0.00] TEST: testns-kfRPbo: strict_mode=0 by default, 0 vrfs [ OK ] # 1.26 [+0.03] # 1.26 [+0.00] TEST: testns-kfRPbo: enable strict_mode (=1) [ OK ] # 1.29 [+0.03] # 1.29 [+0.00] TEST: testns-kfRPbo: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 1.32 [+0.03] # 1.32 [+0.00] TEST: testns-kfRPbo: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 1.38 [+0.06] # 1.38 [+0.00] TEST: testns-kfRPbo: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 1.42 [+0.05] # 1.42 [+0.00] TEST: testns-kfRPbo: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 1.45 [+0.03] # 1.45 [+0.00] TEST: testns-kfRPbo: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 1.48 [+0.03] # 1.48 [+0.00] TEST: testns-kfRPbo: disable strict_mode (=0) [ OK ] # 1.51 [+0.03] # 1.51 [+0.00] TEST: testns-kfRPbo: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 1.54 [+0.03] # 1.54 [+0.00] TEST: testns-kfRPbo: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 1.54 [+0.00] # 1.54 [+0.00] ################################################################################ # 1.54 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 1.55 [+0.00] ################################################################################ # 1.57 [+0.03] # 1.57 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 1.61 [+0.04] # 1.61 [+0.00] TEST: testns-kfRPbo: check strict_mode=0 [ OK ] # 1.67 [+0.06] # 1.67 [+0.00] TEST: testns-kfRPbo: remove vrf vrf101 [ OK ] # 1.70 [+0.04] # 1.70 [+0.00] TEST: testns-kfRPbo: remove vrf vrf102 [ OK ] # 1.72 [+0.02] # 1.72 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 1.75 [+0.03] # 1.75 [+0.00] TEST: testns-kfRPbo: enable strict_mode (=1) [ OK ] # 1.77 [+0.02] # 1.77 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 1.79 [+0.02] # 1.79 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 1.82 [+0.03] # 1.82 [+0.00] TEST: testns-kfRPbo: disable strict_mode (=0) [ OK ] # 1.85 [+0.03] # 1.85 [+0.00] TEST: testns-kfRPbo: disable strict_mode (=0) [ OK ] # 1.87 [+0.03] # 1.87 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 1.91 [+0.04] # 1.91 [+0.00] TEST: testns-kfRPbo: check strict_mode=0 [ OK ] # 2.09 [+0.18] # 2.09 [+0.00] Tests passed: 37 # 2.09 [+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__->