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("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")
24 -n=4 ; $sut_memory_channels
25 no-output=no ; disable DPDK debug output
33 $core_workers_down =9-10,11-12 ;sut_vpe_wkd
34 $core_workers_up =13-14,15-16 ;sut_vpe_wku
70 cpe table map=cpe0,cpe1,cpe0,cpe1
75 tx cores=(${core_workers_up})t3m
84 tx cores=(${core_workers_down})t0 proto=ipv4
93 tx cores=(${core_workers_down})t0 proto=ipv4
103 tx cores=(${core_workers_up})t0 proto=ipv4
113 tx cores=(${core_workers_up})t0 proto=ipv4
116 [core $core_workers_down]
122 tx cores from cpe table=${core_tx_cpe0},${core_tx_cpe1} remap=cpe0,cpe1
124 user table=user_table
129 [core $core_workers_up]
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
158 user table=user_table
171 tx cores from routing table=${core_tx_inet0},${core_tx_inet1},${core_tx_inet0},${core_tx_inet1}
189 user table=user_table
191 [core $core_tx_inet0]
209 user table=user_table
211 [core $core_tx_inet1]