Skip to content

Commit 01fc378

Browse files
authored
P4 Developer Day May 2019 (p4lang#252)
* Update user-bootstrap to use latest version (p4lang#251) * p4c tests are failing in latest version. So, let's skip it during vagrant provisioning * Update tutorial to use latest version of P4 tools Modify switch.py to handle setting default_action Use --p4runtime-files instead of deprecated --p4runtime-file and --p4runtime-format flags Provide standard_metadata for mark_to_drop * Fix path for ECN exercise
1 parent 201fcf5 commit 01fc378

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+59
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion

exercises/basic/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BMV2_SWITCH_EXE = simple_switch_grpc
22
NO_P4 = true
3-
P4C_ARGS = --p4runtime-file $(basename $@).p4info --p4runtime-format text
3+
P4C_ARGS = --p4runtime-files $(basename $@).p4.p4info.txt
44

55
include ../../utils/Makefile

exercises/basic/basic.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ control MyIngress(inout headers hdr,
7575
inout metadata meta,
7676
inout standard_metadata_t standard_metadata) {
7777
action drop() {
78-
mark_to_drop();
78+
mark_to_drop(standard_metadata);
7979
}
8080

8181
action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) {

exercises/basic/s1-runtime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"target": "bmv2",
3-
"p4info": "build/basic.p4info",
3+
"p4info": "build/basic.p4.p4info.txt",
44
"bmv2_json": "build/basic.json",
55
"table_entries": [
66
{

exercises/basic/s2-runtime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"target": "bmv2",
3-
"p4info": "build/basic.p4info",
3+
"p4info": "build/basic.p4.p4info.txt",
44
"bmv2_json": "build/basic.json",
55
"table_entries": [
66
{

exercises/basic/s3-runtime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"target": "bmv2",
3-
"p4info": "build/basic.p4info",
3+
"p4info": "build/basic.p4.p4info.txt",
44
"bmv2_json": "build/basic.json",
55
"table_entries": [
66
{

exercises/basic/solution/basic.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ control MyIngress(inout headers hdr,
8787
inout metadata meta,
8888
inout standard_metadata_t standard_metadata) {
8989
action drop() {
90-
mark_to_drop();
90+
mark_to_drop(standard_metadata);
9191
}
9292

9393
action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) {

exercises/basic_tunnel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BMV2_SWITCH_EXE = simple_switch_grpc
22
NO_P4 = true
3-
P4C_ARGS = --p4runtime-file $(basename $@).p4info --p4runtime-format text
3+
P4C_ARGS = --p4runtime-files $(basename $@).p4.p4info.txt
44

55
include ../../utils/Makefile

exercises/basic_tunnel/basic_tunnel.p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ control MyIngress(inout headers hdr,
9999
inout metadata meta,
100100
inout standard_metadata_t standard_metadata) {
101101
action drop() {
102-
mark_to_drop();
102+
mark_to_drop(standard_metadata);
103103
}
104104

105105
action ipv4_forward(macAddr_t dstAddr, egressSpec_t port) {

exercises/basic_tunnel/s1-runtime.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"target": "bmv2",
3-
"p4info": "build/basic_tunnel.p4info",
3+
"p4info": "build/basic_tunnel.p4.p4info.txt",
44
"bmv2_json": "build/basic_tunnel.json",
55
"table_entries": [
66
{

0 commit comments

Comments
 (0)