make -C tools/testing/selftests TARGETS=net TEST_PROGS=vrf_strict_mode_tesst.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 # # ################################################################################ # TEST SECTION: VRF strict_mode test on init network namespace # ################################################################################ # name: vrf # filename: (builtin) # version: 1.1 # alias: rtnl-link-vrf # license: GPL # file: drivers/net/vrf # description: Device driver to instantiate VRF domains # author: Shrijeet Mukherjee, David Ahern # # TEST: init: net.vrf.strict_mode is available [ OK ] # # TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # # TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # # TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # # TEST: init: enable strict_mode (=1) [ OK ] # # TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # # TEST: init: disable strict_mode (=0) [ OK ] # # TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # # TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # # TEST: init: CANNOT enable strict_mode [ OK ] # # TEST: init: remove vrf vrf101 [ OK ] # # TEST: init: enable strict_mode (=1) [ OK ] # # TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # # TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # # ################################################################################ # TEST SECTION: VRF strict_mode test on testns network namespace # ################################################################################ # name: vrf # filename: (builtin) # version: 1.1 # alias: rtnl-link-vrf # license: GPL # file: drivers/net/vrf # description: Device driver to instantiate VRF domains # author: Shrijeet Mukherjee, David Ahern # # TEST: testns-IdjScT: net.vrf.strict_mode is available [ OK ] # # TEST: testns-IdjScT: strict_mode=0 by default, 0 vrfs [ OK ] # # TEST: testns-IdjScT: enable strict_mode (=1) [ OK ] # # TEST: testns-IdjScT: add vrf vrf100, 1 vrfs for table 100 [ OK ] # # TEST: testns-IdjScT: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # # TEST: testns-IdjScT: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # # TEST: testns-IdjScT: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # # TEST: testns-IdjScT: add vrf vrf200, 1 vrfs for table 200 [ OK ] # # TEST: testns-IdjScT: disable strict_mode (=0) [ OK ] # # TEST: testns-IdjScT: add vrf vrf101, 2 vrfs for table 100 [ OK ] # # TEST: testns-IdjScT: add vrf vrf102, 3 vrfs for table 100 [ OK ] # # ################################################################################ # TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # ################################################################################ # # TEST: init: check strict_mode=1 [ OK ] # # TEST: testns-IdjScT: check strict_mode=0 [ OK ] # # TEST: testns-IdjScT: remove vrf vrf101 [ OK ] # # TEST: testns-IdjScT: remove vrf vrf102 [ OK ] # # TEST: init: disable strict_mode (=0) [ OK ] # # TEST: testns-IdjScT: enable strict_mode (=1) [ OK ] # # TEST: init: enable strict_mode (=1) [ OK ] # # TEST: init: enable strict_mode (=1) [ OK ] # # TEST: testns-IdjScT: disable strict_mode (=0) [ OK ] # # TEST: testns-IdjScT: disable strict_mode (=0) [ OK ] # # TEST: init: check strict_mode=1 [ OK ] # # TEST: testns-IdjScT: check strict_mode=0 [ OK ] # # Tests passed: 37 # 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__->