Support packets in flight
[samplevnf.git] / VNFs / DPPD-PROX / config / pe-8ports.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 [eal options]
18 -n=4 ; force number of memory channels
19 no-output=no ; disable DPDK debug output
20
21 [port 0]
22 name=if0
23 mac=hardware
24 [port 1]
25 name=inet0
26 mac=hardware
27 [port 2]
28 name=if1
29 mac=hardware
30 [port 3]
31 name=inet1
32 mac=hardware
33 [port 4]
34 name=if2
35 mac=hardware
36 [port 5]
37 name=inet2
38 mac=hardware
39 [port 6]
40 name=if3
41 mac=hardware
42 [port 7]
43 name=inet3
44 mac=hardware
45 [lua]
46 lpm4 = dofile("ipv4-2.lua")
47 dscp_table = dofile("dscp2.lua")
48 cpe_table = dofile("cpe_table.lua")
49 acl_table = dofile("rules-2.lua")
50 user_table = dofile("user_table-pe.lua")
51 [defaults]
52 mempool size=65K
53 [global]
54 start time=5
55 name=PE
56 cpe table map=if0,if1,if2,if3
57
58 [variables]
59 $wkd=5s1-6s1,5s1h-6s1h; 4 workers
60 $wku=7s1-9s1,7s1h-9s1h; 6 workers
61 ;$wkd=5s1-6s1,5s1h-6s1h; 6 workers
62 ;$wku=7s1-9s1,7s1h-9s1h; 10 workers
63 [core 0s1]
64 task=0
65 mode=master
66 tx cores=(${wku})t3m
67
68 [core 1s1]
69 name=LB-inet0
70 task=0
71 mode=lbnetwork
72 rx port=inet0
73 untag mpls=yes
74 tx cores=(${wkd})t0 proto=ipv4
75
76 task=1
77 mode=lbnetwork
78 rx port=inet2
79 untag mpls=yes
80 tx cores=(${wkd})t0 proto=ipv4
81
82 [core 1s1h]
83 name=LB-inet1
84 task=0
85 mode=lbnetwork
86 untag mpls=yes
87 rx port=inet1
88 tx cores=(${wkd})t0 proto=ipv4
89
90 task=1
91 mode=lbnetwork
92 untag mpls=yes
93 rx port=inet3
94 tx cores=(${wkd})t0 proto=ipv4
95
96 [core 2s1]
97 name=LB-c0
98 task=0
99 mode=lbnetwork
100 rx port=if0
101 mempool size=16K
102 untag mpls=no
103 tx cores=(${wku})t0 proto=ipv4
104
105 task=1
106 mode=lbnetwork
107 rx port=if2
108 mempool size=16K
109 untag mpls=no
110 tx cores=(${wku})t0 proto=ipv4
111
112 [core 2s1h]
113 name=LB-c1
114 task=0
115 mode=lbnetwork
116 mempool size=16K
117 untag mpls=no
118 rx port=if1
119 tx cores=(${wku})t0 proto=ipv4
120
121 task=1
122 mode=lbnetwork
123 mempool size=16K
124 untag mpls=no
125 rx port=if3
126 tx cores=(${wku})t0 proto=ipv4
127
128 [core $wkd]
129 name=W-down
130 task=0
131 mode=qinqencapv4
132 sub mode=pe
133 rx ring=yes
134 tx cores from cpe table=3s1,4s1,3s1h,4s1h remap=if0,if1,if2,if3
135 user table=user_table
136 cpe table=cpe_table
137 classify=yes
138 dscp=dscp_table
139
140 [core $wku]
141 name=W-up
142 task=0
143 mode=acl
144 rx ring=yes
145 rules=acl_table
146 tx cores=${self}t1
147 max rules=32768
148
149 task=1
150 mode=police
151 sub mode=trtcm
152 police action=yellow io=green,green
153 police action=drop io=green,yellow
154 police action=drop io=green,red
155 police action=drop io=yellow,yellow
156 police action=drop io=yellow,red
157 police action=drop io=red,red
158 cir=4000000000
159 pir=4000000000
160 cbs=20480
161 pbs=20480
162 classify=yes
163 rx ring=yes
164 tx cores=${self}t2
165 users=256
166 mark=yes
167 user table=user_table
168
169 task=2
170 mode=untag
171 ether type=0xa888
172 rx ring=yes
173 tx cores=${self}t3
174
175 task=3
176 mode=routing
177 add mpls=yes
178 rx ring=yes
179 tx ports from routing table=inet0,inet1,inet2,inet3
180 route table=lpm4
181 mark=yes
182 mark green=1
183 mark yellow=2
184 mark red=3
185
186 [core 3s1]
187 name=qos1
188 task=0
189 rx ring=yes
190 mode=qos
191 tx port=if0
192 pipes=256
193 pipe tb rate=6250000
194 pipe tc rate=6250000
195 drop=no
196 user table=user_table
197
198 [core 4s1]
199 name=qos1
200 rx ring=yes
201 task=0
202 mode=qos
203 tx port=if1
204 pipes=256
205 pipe tb rate=6250000
206 pipe tc rate=6250000
207 drop=no
208 user table=user_table
209
210 [core 3s1h]
211 name=qos1
212 task=0
213 rx ring=yes
214 mode=qos
215 tx port=if2
216 pipes=256
217 pipe tb rate=6250000
218 pipe tc rate=6250000
219 drop=no
220 user table=user_table
221
222 [core 4s1h]
223 name=qos1
224 rx ring=yes
225 task=0
226 mode=qos
227 tx port=if3
228 pipes=256
229 pipe tb rate=6250000
230 pipe tc rate=6250000
231 drop=no
232 user table=user_table