File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # The tofino2 has 20 stages. Base sidecar.p4 needs 15 stages, and with
4- # multicast support it needs 18. Specifying the number of stages isn't strictly
5- # necessary, but it allows us to track when we exceed the current ceiling.
6- # The underlying intention is to grow deliberately and thoughtfully, given the
7- # limited space on the ASIC.
8- if [[ " ${BUILD_FEATURES:- } " == * " multicast" * ]]; then
9- TOFINO_STAGES=18
10- else
11- TOFINO_STAGES=15
12- fi
3+ # The tofino2 has 20 stages. With multicast as a default feature, sidecar.p4
4+ # needs 18 stages. Specifying the number of stages isn't strictly necessary,
5+ # but it allows us to track when we exceed the current ceiling. The underlying
6+ # intention is to grow deliberately and thoughtfully, given the limited space
7+ # on the ASIC.
8+ TOFINO_STAGES=18
139
1410# These describe which version of the SDE to download and where to find it
1511SDE_COMMIT=e61fe02c3c1c384b2e212c90177fcea76a31fd4e
Original file line number Diff line number Diff line change @@ -8,18 +8,16 @@ export WS=$wd
88MODEL_STARTUP_TIMEOUT=${MODEL_STARTUP_TIMEOUT:= 5}
99STARTUP_TIMEOUT=${STARTUP_TIMEOUT:= 120}
1010
11- if [[ -z " $MULTICAST " ]]; then
12- BUILD_FEATURES=tofino_asic
13- CODEGEN_FEATURES=
14- SWADM_FEATURES=
15- TOFINO_STAGES=15
16- else
17- BUILD_FEATURES=tofino_asic,multicast
18- CODEGEN_FEATURES=--multicast
19- SWADM_FEATURES=--features=multicast
20- TOFINO_STAGES=18
11+ if [ x$MULTICAST == x ]; then
12+ BUILD_FEATURES=tofino_asic
13+ CODEGEN_FEATURES=
14+ SWADM_FEATURES=
15+ else
16+ BUILD_FEATURES=tofino_asic,multicast
17+ CODEGEN_FEATURES=--multicast
18+ SWADM_FEATURES=--features=multicast
2119fi
22-
20+ TOFINO_STAGES=18
2321function cleanup {
2422 set +o errexit
2523 set +o pipefail
You can’t perform that action at this time.
0 commit comments