Merge "NSB Prox LW_AFTR Test"
[yardstick.git] / samples / vnf_samples / nsut / prox / configs / handle_vpe-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("vpe_ipv4.lua")
18 user_table = dofile("vpe_user_table.lua")
19 dscp_table = dofile("vpe_dscp.lua")
20 cpe_table = dofile("vpe_cpe_table.lua")
21 acl_table = dofile("vpe_rules.lua")
22
23 [eal options]
24 -n=4 ; $sut_memory_channels
25 no-output=no ; disable DPDK debug output
26
27 [variables]
28 $master            =0
29 $core_inet0        =1
30 $core_inet1        =2
31 $core_cpe0         =3
32 $core_cpe1         =4
33 $core_workers_down =9-10,11-12  ;sut_vpe_wkd
34 $core_workers_up   =13-14,15-16 ;sut_vpe_wku
35 $core_tx_cpe0      =5
36 $core_tx_inet0     =6
37 $core_tx_cpe1      =7
38 $core_tx_inet1     =8
39 $qinq_tag          =0xa888
40
41 [port 0]
42 name=cpe0
43 mac=hardware
44 rx desc=2048
45 tx desc=2048
46 [port 1]
47 name=inet0
48 mac=hardware
49 rx desc=2048
50 tx desc=2048
51 [port 2]
52 name=cpe1
53 mac=hardware
54 rx desc=2048
55 tx desc=2048
56 [port 3]
57 name=inet1
58 mac=hardware
59 rx desc=2048
60 tx desc=2048
61
62 [defaults]
63 mempool size=70K
64 memcache size=512
65 qinq tag=$qinq_tag
66
67 [global]
68 start time=5
69 name=vPE
70 cpe table map=cpe0,cpe1,cpe0,cpe1
71
72 [core $master]
73 task=0
74 mode=master
75 tx cores=(${core_workers_up})t3m
76 drop=no
77
78 [core $core_inet0]
79 name=LB-inet0
80 task=0
81 mode=lbnetwork
82 rx port=inet0
83 untag mpls=yes
84 tx cores=(${core_workers_down})t0 proto=ipv4
85 drop=no
86
87 [core $core_inet1]
88 name=LB-inet1
89 task=0
90 mode=lbnetwork
91 rx port=inet1
92 untag mpls=yes
93 tx cores=(${core_workers_down})t0 proto=ipv4
94 drop=no
95
96 [core $core_cpe0]
97 name=LB-c0
98 task=0
99 mode=lbnetwork
100 mempool size=32K
101 rx port=cpe0
102 untag mpls=no
103 tx cores=(${core_workers_up})t0 proto=ipv4
104 drop=no
105
106 [core $core_cpe1]
107 name=LB-c1
108 task=0
109 mode=lbnetwork
110 mempool size=32K
111 rx port=cpe1
112 untag mpls=no
113 tx cores=(${core_workers_up})t0 proto=ipv4
114 drop=no
115
116 [core $core_workers_down]
117 name=W-down
118 task=0
119 mode=qinqencapv4
120 sub mode=pe
121 rx ring=yes
122 tx cores from cpe table=${core_tx_cpe0},${core_tx_cpe1} remap=cpe0,cpe1
123 drop=no
124 user table=user_table
125 cpe table=cpe_table
126 classify=yes
127 dscp=dscp_table
128
129 [core $core_workers_up]
130 name=W-up
131 task=0
132 mode=acl
133 rx ring=yes
134 tx cores=${self}t1
135 drop=no
136 rules=acl_table
137 max rules=32768
138
139 task=1
140 mode=police
141 sub mode=trtcm
142 police action=yellow io=green,green
143 police action=drop io=green,yellow
144 police action=drop io=green,red
145 police action=drop io=yellow,yellow
146 police action=drop io=yellow,red
147 police action=drop io=red,red
148 cir=4000000000
149 pir=4000000000
150 cbs=20480
151 pbs=20480
152 classify=yes
153 rx ring=yes
154 tx cores=${self}t2
155 drop=no
156 users=256
157 mark=yes
158 user table=user_table
159
160 task=2
161 mode=untag
162 ether type=$qinq_tag
163 rx ring=yes
164 tx cores=${self}t3
165 drop=no
166
167 task=3
168 mode=routing
169 add mpls=yes
170 rx ring=yes
171 tx cores from routing table=${core_tx_inet0},${core_tx_inet1},${core_tx_inet0},${core_tx_inet1}
172 drop=no
173 route table=lpm4
174 mark=yes
175 mark green=1
176 mark yellow=2
177 mark red=3
178
179 [core $core_tx_cpe0]
180 name=qos0
181 task=0
182 mode=qos
183 rx ring=yes
184 tx port=cpe0
185 drop=no
186 pipes=256
187 pipe tb rate=6250000
188 pipe tc rate=6250000
189 user table=user_table
190
191 [core $core_tx_inet0]
192 name=txnop
193 task=0
194 mode=nop
195 rx ring=yes
196 tx port=inet0
197 drop=no
198
199 [core $core_tx_cpe1]
200 name=qos1
201 task=0
202 mode=qos
203 rx ring=yes
204 tx port=cpe1
205 drop=no
206 pipes=256
207 pipe tb rate=6250000
208 pipe tc rate=6250000
209 user table=user_table
210
211 [core $core_tx_inet1]
212 name=txnop
213 task=0
214 mode=nop
215 rx ring=yes
216 tx port=inet1
217 drop=no