Fix toeplitz initialization key and rss key len for mlx4
[samplevnf.git] / VNFs / DPPD-PROX / config / nop-rings.cfg
1 ;;
2 ;; Copyright (c) 2010-2017 Intel Corporation
3 ;;
4 ;; Licensed under the Apache License, Version 2.0 (the "License");
5 ;; you may not use this file except in compliance with the License.
6 ;; You may obtain a copy of the License at
7 ;;
8 ;;     http://www.apache.org/licenses/LICENSE-2.0
9 ;;
10 ;; Unless required by applicable law or agreed to in writing, software
11 ;; distributed under the License is distributed on an "AS IS" BASIS,
12 ;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ;; See the License for the specific language governing permissions and
14 ;; limitations under the License.
15 ;;
16
17 ;;
18 ; This configuration is similar to config/nop.cfg with the difference being the
19 ; type of interfaces. The physical ports are replaced by DPDK rings. To use this
20 ; functionality, RTE_TARGET must be set to x86_64-ivshmem-linuxapp-gcc before
21 ; compiling DPDK (i.e. export RTE_TARGET=x86_64-ivshmem-linuxapp-gcc). Also,
22 ; DPDK needs to be compiled with both CONFIG_RTE_BUILD_COMBINE_LIBS=y and
23 ; CONFIG_RTE_LIBRTE_VHOST=y
24 ; The configuration can then be used inside a VM running on top of Open vSwitch.
25 ; The SHA-1 of the Open vSwitch version that has been tested is c78a00b112c9. To
26 ; run the VM, Qemu needs to be patched to support ivshmem with multiple regions
27 ; and the right command line arguments to be used to share memory. Download and
28 ; patch Qemu 1.6.2 using the following commands:
29 ;   git clone git://git.qemu-project.org/qemu.git
30 ;   cd qemu
31 ;   git checkout v1.6.2
32 ;   wget https://01.org/sites/default/files/page/qemu-v1.6.2-ivshmem-dpdk.patch
33 ;   patch -p1 < qemu-v1.6.2-ivshmem-dpdk.patch
34 ;   ./configure
35 ;   make
36 ; After Open vSwitch has been configured with DPDK rings as ports (i.e. ports
37 ; with type dpdkr), Qemu needs to be started with the correct command line
38 ; arguments. Refer to Section 11.1 from the DPDK Programmer's Guide on how to
39 ; build the Qemu command line arguments.
40 ; This configuration uses 4 ports. This means that 8 rings (4 for TX and 4 for
41 ; RX) will need to be shared with the VM through ivshmem.
42 ;;
43
44 [eal options]
45 -n=4 ; force number of memory channels
46 no-output=no ; disable DPDK debug output
47
48 [port 0]
49 name=if0
50 mac=00:00:00:00:00:01
51 rx_ring=dpdkr0_tx
52 tx_ring=dpdkr0_rx
53 [port 1]
54 name=if1
55 mac=00:00:00:00:00:02
56 rx_ring=dpdkr1_tx
57 tx_ring=dpdkr1_rx
58 [port 2]
59 name=if2
60 mac=00:00:00:00:00:03
61 rx_ring=dpdkr2_tx
62 tx_ring=dpdkr2_rx
63 [port 3]
64 name=if3
65 mac=00:00:00:00:00:04
66 rx_ring=dpdkr3_tx
67 tx_ring=dpdkr3_rx
68
69 [defaults]
70 mempool size=8K
71
72 [global]
73 start time=5
74 name=NOP forwarding rings (4x)
75
76 [core 0]
77 mode=master
78
79 [core 1]
80 name=nop
81 task=0
82 mode=nop
83 rx port=if0
84 tx port=if1
85 drop=no
86
87 [core 2]
88 name=nop
89 task=0
90 mode=nop
91 rx port=if1
92 tx port=if0
93 drop=no
94
95 [core 3]
96 name=nop
97 task=0
98 mode=nop
99 rx port=if2
100 tx port=if3
101 drop=no
102
103 [core 4]
104 name=nop
105 task=0
106 mode=nop
107 rx port=if3
108 tx port=if2
109 drop=no