Merge "docs: Update install and release docs for DPDK migration support"
[samplevnf.git] / VNFs / DPPD-PROX / config / pe-4ports.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 [lua]
34 lpm4 = dofile("ipv4-2.lua")
35 dscp_table = dofile("dscp2.lua")
36 cpe_table = dofile("cpe_table.lua")
37 acl_table = dofile("rules-2.lua")
38 user_table = dofile("user_table-pe.lua")
39 [defaults]
40 mempool size=65K
41 [global]
42 start time=5
43 name=PE
44 cpe table map=if0,if1,if0,if1
45
46 [variables]
47 ;$wkd=5s1-6s1,5s1h-6s1h; 4 workers
48 ;$wku=7s1-9s1,7s1h-9s1h; 6 workers
49 $wkd=5s1-6s1,5s1h-6s1h; 6 workers
50 $wku=7s1-9s1,7s1h-9s1h; 10 workers
51 [core 0s1]
52 task=0
53 mode=master
54 tx cores=(${wku})t3m
55
56 [core 1s1]
57 name=LB-inet0
58 task=0
59 mode=lbnetwork
60 rx port=inet0
61 untag mpls=yes
62 tx cores=(${wkd})t0 proto=ipv4
63
64 [core 1s1h]
65 name=LB-inet1
66 task=0
67 mode=lbnetwork
68 untag mpls=yes
69 rx port=inet1
70 tx cores=(${wkd})t0 proto=ipv4
71
72 [core 2s1]
73 name=LB-c0
74 task=0
75 mode=lbnetwork
76 rx port=if0
77 mempool size=16K
78 untag mpls=no
79 tx cores=(${wku})t0 proto=ipv4
80
81 [core 2s1h]
82 name=LB-c1
83 task=0
84 mode=lbnetwork
85 mempool size=16K
86 untag mpls=no
87 rx port=if1
88 tx cores=(${wku})t0 proto=ipv4
89
90 [core $wkd]
91 name=W-down
92 task=0
93 mode=qinqencapv4
94 sub mode=pe
95 rx ring=yes
96 tx cores from cpe table=3s1,4s1 remap=if0,if1
97 user table=user_table
98 cpe table=cpe_table
99 classify=yes
100 dscp=dscp_table
101
102 [core $wku]
103 name=W-up
104 task=0
105 mode=acl
106 rx ring=yes
107 rules=acl_table
108 tx cores=${self}t1
109 max rules=32768
110
111 task=1
112 mode=police
113 sub mode=trtcm
114 police action=yellow io=green,green
115 police action=drop io=green,yellow
116 police action=drop io=green,red
117 police action=drop io=yellow,yellow
118 police action=drop io=yellow,red
119 police action=drop io=red,red
120 cir=4000000000
121 pir=4000000000
122 cbs=20480
123 pbs=20480
124 classify=yes
125 rx ring=yes
126 tx cores=${self}t2
127 users=256
128 mark=yes
129 user table=user_table
130
131 task=2
132 mode=untag
133 ether type=0xa888
134 rx ring=yes
135 tx cores=${self}t3
136
137 task=3
138 mode=routing
139 add mpls=yes
140 rx ring=yes
141 tx ports from routing table=inet0,inet1,inet0,inet1
142 route table=lpm4
143 mark=yes
144 mark green=1
145 mark yellow=2
146 mark red=3
147
148 [core 3s1]
149 name=qos1
150 task=0
151 rx ring=yes
152 mode=qos
153 tx port=if0
154 pipes=256
155 pipe tb rate=6250000
156 pipe tc rate=6250000
157 drop=no
158 user table=user_table
159
160 [core 4s1]
161 name=qos1
162 rx ring=yes
163 task=0
164 mode=qos
165 tx port=if1
166 pipes=256
167 pipe tb rate=6250000
168 pipe tc rate=6250000
169 drop=no
170 user table=user_table