test_spec: LTD: Add Caution for Scaleability Address Time-out.
[vswitchperf.git] / conf / 02_vswitch.conf
1 # Copyright 2015 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # ############################
16 # vswitch configuration
17 # ############################
18 RTE_SDK = '~/dpdk'
19 OVS_DIR = '~/openvswitch'
20
21 # ############################
22 # DPDK configuration
23 # ############################
24
25 # DPDK target used when builing DPDK
26 RTE_TARGET = 'x86_64-ivshmem-linuxapp-gcc'
27
28 # list of NIC HWIDs which will be bound to the 'igb_uio' driver on
29 # system init
30 WHITELIST_NICS = ['05:00.0', '05:00.1']
31
32 # list of NIC HWIDs which will be ignored by the 'igb_uio' driver on
33 # system init
34 BLACKLIST_NICS = ['0000:09:00.0', '0000:09:00.1', '0000:09:00.2',
35                   '0000:09:00.3']
36
37 # These are DPDK EAL parameters and they may need to be changed depending on
38 # hardware configuration, like cpu numbering and NUMA.
39 VSWITCHD_DPDK_ARGS = ['-c', '0x4', '-n', '4', '--socket-mem 1024,0']
40
41 VSWITCHD_VANILLA_ARGS = ['--pidfile']
42 VSWITCH_VANILLA_PHY_PORT_NAMES = ['', '']
43 VSWITCH_VANILLA_KERNEL_MODULES = ['openvswitch']
44
45 # Bridge name to be used by VSWTICH
46 VSWITCH_BRIDGE_NAME = 'br0'
47
48 # directory where hugepages will be mounted on system init
49 HUGEPAGE_DIR = '/dev/hugepages'
50
51 # Sets OVS PMDs core mask to 0x30 for affinitization to 5th and 6th CPU core
52 VSWITCH_PMD_CPU_MASK = '0x30'
53 VSWITCH_AFFINITIZATION_ON = 1
54
55 VSWITCH_FLOW_TIMEOUT = '30000'
56
57 # list of tuples of format (path, module_name), which will be inserted
58 # using 'insmod' on system init
59
60 # for OVS modules the path is in reference to the OVS directory.
61 OVS_MODULES = []
62
63 # for DPDK_MODULES the path is in reference to the build directory
64 DPDK_MODULES = [
65     ('kmod', 'igb_uio'),
66 ]
67
68 VHOST_MODULE = [
69     ('eventfd_link', 'eventfd_link')
70 ]
71
72 # list of modules that will be inserted using 'modprobe' on system init
73 SYS_MODULES = ['uio', 'cuse']
74
75 # vhost character device file used by dpdkvhostport QemuWrap cases
76 VHOST_DEV_FILE = 'ovs-vhost-net'
77
78 # location of vhost-user sockets
79 VHOST_USER_SOCKS = ['/tmp/dpdkvhostuser0', '/tmp/dpdkvhostuser1',
80                     '/tmp/dpdkvhostuser2', '/tmp/dpdkvhostuser3',
81                     '/tmp/myport0', '/tmp/helloworld123', '/tmp/abcstuff0']
82
83 # log file for ovs-vswitchd
84 LOG_FILE_VSWITCHD = 'vswitchd.log'
85
86 # log file for ovs-dpdk
87 LOG_FILE_OVS = 'ovs.log'
88
89 VSWITCH_DIR = os.path.join(ROOT_DIR, 'vswitches')
90 VSWITCH = "OvsDpdkVhost"
91
92 # Use vhost user or vhost cuse
93 # Set to cuse if you want to test vhostcuse
94 VHOST_METHOD = 'user'