Skip to content

Commit 52ac6a8

Browse files
merge multicast-e2e
2 parents 4367608 + 499f3c7 commit 52ac6a8

File tree

15 files changed

+17
-32
lines changed

15 files changed

+17
-32
lines changed

.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/illumos.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22
banner "sde setup"
33

44
export PKG=tofino_sde.p5p
5-
curl -OL $SDE_DIR/$PKG
6-
SDE_CALC=`digest -a sha256 $PKG`
7-
if [ $SDE_CALC != $SDE_PKG_SHA256 ]; then
8-
echo "downloaded tofino_sde has a bad checksum"
9-
exit 1
10-
fi
11-
pfexec pkg install -g $PKG tofino_sde
125

136
export SDE=/opt/oxide/tofino_sde
147
export LD_LIBRARY_PATH="$SDE/lib:$LD_LIBRARY_PATH"
158

169
# Install a couple of non-standard packages needed to build dendrite
1710
banner "packages"
18-
pfexec pkg install clang-15 pcap
19-
pfexec pkg set-mediator -V 15 clang llvm
2011

2112
cargo --version
2213
rustc --version

.github/buildomat/jobs/image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pfexec chown "$UID" /out
101101

102102
banner "P4 Codegen"
103103
# Add gcc-12 so the p4 compiler can find cpp
104-
PATH=/opt/gcc-12/bin:$PATH cargo xtask codegen --stages $TOFINO_STAGES
104+
PATH=/opt/gcc-12/bin:$PATH cargo xtask codegen --stages $TOFINO_STAGES --multicast
105105

106106
# Preserve all the diagnostics spit out by the compiler
107107
mkdir -p /out/p4c-diags

.github/buildomat/jobs/multicast-test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ set -o errexit
3030
set -o pipefail
3131
set -o xtrace
3232

33-
export MULTICAST=1
3433
source .github/buildomat/packet-test-common.sh

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,11 @@ 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
21-
fi
11+
BUILD_FEATURES=tofino_asic
12+
TOFINO_STAGES=18
13+
14+
CODEGEN_FEATURES=--multicast
15+
SWADM_FEATURES="--features=multicast"
2216

2317
function cleanup {
2418
set +o errexit

HEAD

Whitespace-only changes.

aal/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
edition = "2024"
55

66
[features]
7+
default = ["multicast"]
78
multicast = []
89

910
[dependencies]

asic/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
edition = "2024"
55

66
[features]
7+
default = ["multicast"]
78
tofino_asic = [
89
"dep:lazy_static",
910
"dep:transceiver-controller",

config

Whitespace-only changes.

dpd-client/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2024"
55
description = "Client library for the Dendrite data plane daemon"
66

77
[features]
8+
default = ["multicast"]
89
multicast = ["asic/multicast"]
910
chaos = ["asic/chaos"]
1011
tofino_asic = ["asic/tofino_asic"]

0 commit comments

Comments
 (0)