1 # Copyright (c) 2016-2017 Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 lpm4 = dofile("ipv4.lua")
18 user_table = dofile("gre_table.lua")
19 dscp_table = dofile("dscp.lua")
22 -n=4 ; $sut_memory_channels
23 no-output=no ; disable DPDK debug output
31 $core_workers =13-14,15-16 ;sut_bng_qos_wk
75 ;*****************************************************************************************
76 ;##### Load Balancing receiving from CPE and from Internet ####
82 tx cores=(${core_workers})t0 proto=ipv4
83 tx cores=(${core_workers})t0 proto=arp
92 tx cores=(${core_workers})t1 proto=ipv4
100 tx cores=(${core_workers})t0 proto=ipv4
101 tx cores=(${core_workers})t0 proto=arp
110 tx cores=(${core_workers})t1 proto=ipv4
113 ;*****************************************************************************************
114 ;#### Workers receiving from LB
115 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
117 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
123 tx cores from routing table=${core_tx_inet0},${core_tx_inet1}
126 local ipv4=21.22.23.24
128 user table=user_table
129 fast path handle arp=yes
134 tx cores from cpe table=${core_qos_cpe0},${core_qos_cpe1} remap=cpe0,cpe1 ;map packets going to cpe0 to 3s0 and cpe1 to 4s0
136 user table=user_table
140 ;*****************************************************************************************
141 ;#### Downstream QoS receiving from workers
142 ;#### classification done by workers
143 ;#### Downstream QoS = QoS core and TX core
144 [core $core_qos_cpe0]
149 tx cores=(${core_tx_cpe0})t0
153 user table=user_table
164 [core $core_qos_cpe1]
169 tx cores=(${core_tx_cpe1})t0
173 user table=user_table
184 ;*****************************************************************************************
185 ;#### upstream QoS receiving from CPE
186 ;#### classification done by RX, QoS core
187 ;#### upstream QoS = RX core (classify) + QoS core
188 [core $core_tx_inet0]
202 tx cores=(${core_lb_cpe0})t0
206 user table=user_table
210 [core $core_tx_inet1]
224 tx cores=(${core_lb_cpe1})t0
228 user table=user_table