Fix arp handling when master core is on socket 1
[samplevnf.git] / VNFs / DPPD-PROX / config / bng-8ports-17cores.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 sets up a system that handles the same workload as
19 ; config/bng-qos-4ports.cfg, but on 8 ports instead of 4 and on CPU socket 1
20 ; instead of socket 0.
21 ;;
22
23 [eal options]
24 -n=6 ; force number of memory channels
25 no-output=no ; disable DPDK debug output
26
27 [port 0]
28 name=cpe0
29 mac=00:00:01:00:00:01
30 tx desc=$txd
31 promiscuous=$promiscuous
32
33 [port 1]
34 name=inet0
35 mac=00:00:01:00:00:02
36 rx desc=$rxd
37 tx desc=$txd
38 promiscuous=$promiscuous
39
40 [port 2]
41 name=cpe1
42 mac=00:00:01:00:00:03
43 tx desc=$txd
44 promiscuous=$promiscuous
45
46 [port 3]
47 name=inet1
48 mac=00:00:01:00:00:04
49 tx desc=$txd
50 rx desc=$rxd
51 promiscuous=$promiscuous
52
53 [port 4]
54 name=cpe2
55 mac=00:00:02:00:00:01
56 tx desc=$txd
57 rx desc=$rxd
58 promiscuous=$promiscuous
59
60 [port 5]
61 name=inet2
62 mac=00:00:02:00:00:02
63 tx desc=$txd
64 promiscuous=$promiscuous
65
66 [port 6]
67 name=cpe3
68 mac=00:00:02:00:00:03
69 tx desc=$txd
70 promiscuous=$promiscuous
71
72 [port 7]
73 name=inet3
74 mac=00:00:02:00:00:04
75 rx desc=$rxd
76 tx desc=$txd
77 promiscuous=$promiscuous
78
79 [variables]
80 $wk=9s0-16s0,9s0h-16s0h
81 $lb_drop=no
82 $wt_drop=no
83 $rxd=256
84 $txd=256
85 $promiscuous=yes
86 $mcs=128
87 $rs=1024
88
89 [defaults]
90 mempool size=16K
91 qinq tag=0xa888
92
93 [lua]
94 lpm4 = dofile("ipv4-4ports.lua")
95 user_table = dofile("user_table-131K-bng.lua")
96 [global]
97 start time=20
98 name=BNG + QoS
99 unique mempool per socket=yes
100 mp rings=yes
101
102 [core 0s0]
103 mode=master
104
105 ; IPv4
106 ;*****************************************************************************************
107 ;##### Load Balancing receiving from CPE and from Internet ####
108 [core 1s0]
109 name=LB-cpe
110 task=0
111 mode=lbqinq
112 rx port=cpe0
113 tx cores=(${wk})t0 proto=ipv4
114 tx cores=(${wk})t0p proto=arp
115 drop=$lb_drop
116 memcache size=$mcs
117 ring size=$rs
118
119 [core 2s0]
120 name=LB-cpe
121 task=0
122 mode=lbqinq
123 rx port=cpe1
124 tx cores=(${wk})t0 proto=ipv4
125 tx cores=(${wk})t0p proto=arp
126 drop=$lb_drop
127 memcache size=$mcs
128 ring size=$rs
129
130 [core 3s0]
131 name=LB-cpe
132 task=0
133 mode=lbqinq
134 rx port=cpe2
135 tx cores=(${wk})t0 proto=ipv4
136 tx cores=(${wk})t0p proto=arp
137 drop=$lb_drop
138 memcache size=$mcs
139 ring size=$rs
140
141 [core 4s0]
142 name=LB-cpe
143 task=0
144 mode=lbqinq
145 rx port=cpe3
146 tx cores=(${wk})t0 proto=ipv4
147 tx cores=(${wk})t0p proto=arp
148 drop=$lb_drop
149 memcache size=$mcs
150 ring size=$rs
151
152 [core 5s0]
153 name=LB-inet
154 task=0
155 mode=lbnetwork
156 rx port=inet0
157 untag mpls=yes
158 tx cores=(${wk})t1 proto=ipv4
159 drop=$lb_drop
160 memcache size=$mcs
161 ring size=$rs
162
163 [core 6s0]
164 name=LB-inet
165 task=0
166 mode=lbnetwork
167 rx port=inet1
168 untag mpls=yes
169 tx cores=(${wk})t1 proto=ipv4
170 drop=$lb_drop
171 memcache size=$mcs
172 ring size=$rs
173
174 [core 7s0]
175 name=LB-inet
176 task=0
177 mode=lbnetwork
178 untag mpls=yes
179 rx port=inet2
180 tx cores=(${wk})t1 proto=ipv4
181 drop=$lb_drop
182 memcache size=$mcs
183 ring size=$rs
184
185 [core 8s0]
186 name=LB-inet
187 task=0
188 mode=lbnetwork
189 untag mpls=yes
190 rx port=inet3
191 tx cores=(${wk})t1 proto=ipv4
192 drop=$lb_drop
193 memcache size=$mcs
194 ring size=$rs
195
196 ;*****************************************************************************************
197 ;#### Workers receiving from LB
198 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
199 ;#### Task 1: ARP
200 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
201 [core $wk]
202 name=Worker
203 task=0
204 mode=qinqdecapv4
205 rx ring=yes
206 tx ports from routing table=inet0,inet1,inet2,inet3
207 route table=lpm4
208 local ipv4=21.22.23.24
209 drop=$wt_drop
210 handle arp=yes
211 cpe table timeout ms=15000000
212 ctrl path polling frequency=10000
213 user table=user_table
214
215 task=1
216 mode=qinqencapv4
217 rx ring=yes
218 tx ports from cpe table=cpe0,cpe1,cpe2,cpe3
219 drop=$wt_drop
220 ctrl path polling frequency=10000
221 user table=user_table
222 ring size=$rs