Merge "ansible: disable Extra cloud image kernel stub"
[yardstick.git] / samples / vnf_samples / nsut / prox / configs / handle_bng-4.cfg
1 # Copyright (c) 2016-2017 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 [lua]
17 lpm4 = dofile("ipv4.lua")
18 user_table = dofile("gre_table.lua")
19
20 [eal options]
21 -n=4 ; $sut_memory_channels
22 no-output=no ; disable DPDK debug output
23
24 [variables]
25 $master        =0
26 $core_lb_cpe0  =1
27 $core_inet0    =2
28 $core_lb_cpe1  =3
29 $core_inet1    =4
30 $core_workers  =13-14,15-16
31 $core_tx_cpe0  =6
32 $core_tx_cpe1  =8
33 $core_tx_inet0 =9
34 $core_tx_inet1 =11
35 $core_cpe1     =12
36
37 [port 0]
38 name=cpe0
39 mac=hardware
40 rx desc=2048
41 tx desc=2048
42 [port 1]
43 name=inet0
44 mac=hardware
45 rx desc=2048
46 tx desc=2048
47 [port 2]
48 name=cpe1
49 mac=hardware
50 rx desc=2048
51 tx desc=2048
52 [port 3]
53 name=inet1
54 mac=hardware
55 rx desc=2048
56 tx desc=2048
57
58 [defaults]
59 mempool size=142K
60 memcache size=512
61 qinq tag=0xa888
62
63 [global]
64 start time=20
65 name=BNG
66
67 [core $master]
68 mode=master
69
70 ; IPv4
71 ;*****************************************************************************************
72 ;##### Load Balancing receiving from CPE and from Internet ####
73 [core $core_lb_cpe0]
74 name=LB-cpe
75 task=0
76 mode=lbqinq
77 rx port=cpe0
78 tx cores=(${core_workers})t0 proto=ipv4
79 tx cores=(${core_workers})t0 proto=arp
80 drop=no
81
82 [core $core_inet0]
83 name=LB-inet
84 task=0
85 mode=lbnetwork
86 rx port=inet0
87 untag mpls=yes
88 tx cores=(${core_workers})t1 proto=ipv4
89 drop=no
90
91 [core $core_lb_cpe1]
92 name=LB-cpe
93 task=0
94 mode=lbqinq
95 rx port=cpe1
96 tx cores=(${core_workers})t0 proto=ipv4
97 tx cores=(${core_workers})t0 proto=arp
98 drop=no
99
100 [core $core_inet1]
101 name=LB-inet
102 task=0
103 mode=lbnetwork
104 rx port=inet1
105 untag mpls=yes
106 tx cores=(${core_workers})t1 proto=ipv4
107 drop=no
108
109 [core $core_tx_cpe0]
110 name=LB-cpe
111 task=0
112 mode=nop
113 rx ring=yes
114 tx port=cpe0
115 drop=no
116
117 [core $core_tx_inet0]
118 name=LB-cpe
119 task=0
120 mode=nop
121 rx ring=yes
122 tx port=inet0
123 drop=no
124
125 [core $core_tx_cpe1]
126 name=LB-cpe
127 task=0
128 mode=nop
129 rx ring=yes
130 tx port=cpe1
131 drop=no
132
133 [core $core_tx_inet1]
134 name=LB-cpe
135 task=0
136 mode=nop
137 rx ring=yes
138 tx port=inet1
139 drop=no
140
141
142 ;*****************************************************************************************
143 ;#### Workers receiving from LB
144 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
145 ;#### Task 1: ARP
146 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
147 [core $core_workers]
148 name=Worker
149 task=0
150 mode=qinqdecapv4
151 rx ring=yes
152 tx cores from routing table=${core_tx_inet0},${core_tx_inet1}
153 drop=no
154 route table=lpm4
155 local ipv4=21.22.23.24
156 handle arp=yes
157 user table=user_table
158 fast path handle arp=yes
159
160 task=1
161 mode=qinqencapv4
162 rx ring=yes ; gre received from internal queue
163 tx cores from cpe table=${core_tx_cpe0},${core_tx_cpe1} remap=cpe0,cpe1
164 drop=no
165 user table=user_table
166
167 ;