Skip to content

Commit 8cd4776

Browse files
merge multicast-e2e
2 parents 4367608 + 3799229 commit 8cd4776

2 files changed

Lines changed: 15 additions & 21 deletions

File tree

.github/buildomat/common.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
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
1511
SDE_COMMIT=e61fe02c3c1c384b2e212c90177fcea76a31fd4e

.github/buildomat/packet-test-common.sh

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ export WS=$wd
88
MODEL_STARTUP_TIMEOUT=${MODEL_STARTUP_TIMEOUT:=5}
99
STARTUP_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
2119
fi
22-
20+
TOFINO_STAGES=18
2321
function cleanup {
2422
set +o errexit
2523
set +o pipefail

0 commit comments

Comments
 (0)