Skip to content

Commit cf02788

Browse files
committed
Merge remote-tracking branch 'up/master'
2 parents 471c37a + ad259b5 commit cf02788

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

exercises/flowcache/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ necessary to forward traffic between hosts.
2323

2424
The starter code for this assignment is in files called `flowcache.p4` and `mycontroller.py`. Your job will be to finalize the P4 program to properly implement the `PacketIn` and `PacketOut` idle timeout mechanismes.
2525

26-
Let's first compile the new P4 program, start the network, and use `mycontroller.py` to install the flowcache pipeline in the data plane.
26+
First, you need to define the fields in the `packet_in` and `packet_out` headers; otherwise, you’ll get compilation errors. The `packet_in` header should contain three fields: `input_port`, `punt_reason`, and `opcode`. The `packet_out` header should include: `opcode`, `reserved1`, and `operand0` (which represents the egress port in this case). You can see how these header fields are configured and used in the P4 code. More details about `packet_in` and `packet_out` are available in Section 6.4.6 of the [P4Runtime Spec](https://p4.org/specifications/).
27+
28+
After defining the `packet_in` and `packet_out` headers, compile the new P4 program, start the network, and use `mycontroller.py` to install the flowcache pipeline in the data plane.
2729

2830
1. In your shell, run:
2931
```bash

vm-ubuntu-24.04/install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ print_usage() {
2626
1>&2 echo "usage: $0 [ latest | <date> ]"
2727
1>&2 echo ""
2828
1>&2 echo "Dates supported:"
29+
1>&2 echo " 2025-Oct-01"
2930
1>&2 echo " 2025-Sep-01"
3031
1>&2 echo " 2025-Aug-01"
3132
}
3233

3334
if [ $# -eq 0 ]
3435
then
35-
VERSION="2025-Sep-01"
36+
VERSION="2025-Oct-01"
3637
echo "No version specified. Defaulting to ${VERSION}"
3738
elif [ $# -eq 1 ]
3839
then
@@ -43,6 +44,12 @@ else
4344
fi
4445

4546
case ${VERSION} in
47+
2025-Oct-01)
48+
export INSTALL_BEHAVIORAL_MODEL_SOURCE_VERSION="68f4a978f465fd76e98fcdecb762981843fb7310"
49+
export INSTALL_PI_SOURCE_VERSION="5689c91a8a7423781267b27d8b166c49a53904ff"
50+
export INSTALL_P4C_SOURCE_VERSION="2265f80459e06a89ffba26cb51c42cc05b1c023e"
51+
export INSTALL_PTF_SOURCE_VERSION="05f46c3873feb2213df29743be3d9a9e34d5559b"
52+
;;
4653
2025-Sep-01)
4754
export INSTALL_BEHAVIORAL_MODEL_SOURCE_VERSION="c8081706b38aa6c7e26e8aa78513ac0ac1c17975"
4855
export INSTALL_PI_SOURCE_VERSION="5689c91a8a7423781267b27d8b166c49a53904ff"

0 commit comments

Comments
 (0)