f0475313f05eb371e815c8aad3e3bdc132acf46e
[vswitchperf.git] / conf / 02_vswitch.conf
1 # Copyright 2015-2016 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 # Directories
17 # ############################
18 # use DPDK VHOST USER by default
19 RTE_SDK = RTE_SDK_USER
20 OVS_DIR = OVS_DIR_USER
21
22 OVS_VAR_DIR = '/usr/local/var/run/openvswitch/'
23 OVS_ETC_DIR = '/usr/local/etc/openvswitch/'
24
25 VSWITCH_DIR = os.path.join(ROOT_DIR, 'vswitches')
26
27 # ############################
28 # DPDK configuration
29 # ############################
30
31 # DPDK target used when builing DPDK
32 RTE_TARGET = 'x86_64-native-linuxapp-gcc'
33
34 # list of NIC HWIDs which will be bound to the 'igb_uio' driver on
35 # system init
36 WHITELIST_NICS = ['05:00.0', '05:00.1']
37
38 # list of NIC HWIDs which will be ignored by the 'igb_uio' driver on
39 # system init
40 BLACKLIST_NICS = ['0000:09:00.0', '0000:09:00.1', '0000:09:00.2',
41                   '0000:09:00.3']
42
43 # for DPDK_MODULES the path is in reference to the build directory
44 # To use vfio set
45 # DPDK_MODULES = [
46 #     ('vfio-pci'),
47 # ]
48 DPDK_MODULES = [
49     ('kmod', 'igb_uio'),
50 ]
51
52 VHOST_MODULE = [
53     ('eventfd_link', 'eventfd_link')
54 ]
55
56 # list of modules that will be inserted using 'modprobe' on system init
57 # To use vfio set
58 # SYS_MODULES = ['cuse']
59 SYS_MODULES = ['uio', 'cuse']
60
61 # vhost character device file used by dpdkvhostport QemuWrap cases
62 VHOST_DEV_FILE = 'ovs-vhost-net'
63
64 # location of vhost-user sockets
65 VHOST_USER_SOCKS = ['/tmp/dpdkvhostuser0', '/tmp/dpdkvhostuser1',
66                     '/tmp/dpdkvhostuser2', '/tmp/dpdkvhostuser3',
67                     '/tmp/myport0', '/tmp/helloworld123', '/tmp/abcstuff0']
68
69 # ############################
70 # vswitch configuration
71 # ############################
72 # These are DPDK EAL parameters and they may need to be changed depending on
73 # hardware configuration, like cpu numbering and NUMA.
74 VSWITCHD_DPDK_ARGS = ['-c', '0x4', '-n', '4', '--socket-mem 1024,0']
75
76 VSWITCHD_VANILLA_ARGS = ['--pidfile']
77 VSWITCH_VANILLA_PHY_PORT_NAMES = ['', '']
78
79 # use full module path to load module matching OVS version built from the source
80 VSWITCH_VANILLA_KERNEL_MODULES = ['libcrc32c', 'ip_tunnel', 'vxlan', 'gre', 'nf_conntrack', 'nf_defrag_ipv4', 'nf_defrag_ipv6', os.path.join(OVS_DIR_VANILLA, 'datapath/linux/openvswitch.ko')]
81
82 # Bridge name to be used by VSWTICH
83 VSWITCH_BRIDGE_NAME = 'br0'
84
85 # directory where hugepages will be mounted on system init
86 HUGEPAGE_DIR = '/dev/hugepages'
87
88 # Sets OVS PMDs core mask to 30 for affinitization to 5th and 6th CPU core.
89 # Note that the '0x' notation should not be used.
90 VSWITCH_PMD_CPU_MASK = '30'
91 VSWITCH_AFFINITIZATION_ON = 1
92
93 VSWITCH_FLOW_TIMEOUT = '30000'
94
95 # list of tuples of format (path, module_name), which will be inserted
96 # using 'insmod' on system init
97
98 # for OVS modules the path is in reference to the OVS directory.
99 OVS_MODULES = []
100
101 # log file for ovs-vswitchd
102 LOG_FILE_VSWITCHD = 'vswitchd.log'
103
104 # log file for ovs-dpdk
105 LOG_FILE_OVS = 'ovs.log'
106
107 # default vswitch implementation
108 VSWITCH = "OvsDpdkVhost"