P4 Developer Day May 2019 (#252)
* Update user-bootstrap to use latest version (#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
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
BMV2_SWITCH_EXE = simple_switch_grpc
|
||||
NO_P4 = true
|
||||
P4C_ARGS = --p4runtime-file $(basename $@).p4info --p4runtime-format text
|
||||
P4C_ARGS = --p4runtime-files $(basename $@).p4.p4info.txt
|
||||
|
||||
include ../../utils/Makefile
|
||||
|
||||
|
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 138 B |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"target": "bmv2",
|
||||
"p4info": "build/source_routing.p4info",
|
||||
"p4info": "build/source_routing.p4.p4info.txt",
|
||||
"bmv2_json": "build/source_routing.json",
|
||||
"table_entries": [ ]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"target": "bmv2",
|
||||
"p4info": "build/source_routing.p4info",
|
||||
"p4info": "build/source_routing.p4.p4info.txt",
|
||||
"bmv2_json": "build/source_routing.json",
|
||||
"table_entries": [ ]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"target": "bmv2",
|
||||
"p4info": "build/source_routing.p4info",
|
||||
"p4info": "build/source_routing.p4.p4info.txt",
|
||||
"bmv2_json": "build/source_routing.json",
|
||||
"table_entries": [ ]
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ control MyIngress(inout headers hdr,
|
||||
inout standard_metadata_t standard_metadata) {
|
||||
|
||||
action drop() {
|
||||
mark_to_drop();
|
||||
mark_to_drop(standard_metadata);
|
||||
}
|
||||
|
||||
action srcRoute_nhop() {
|
||||
|
||||
@@ -110,7 +110,7 @@ control MyIngress(inout headers hdr,
|
||||
inout standard_metadata_t standard_metadata) {
|
||||
|
||||
action drop() {
|
||||
mark_to_drop();
|
||||
mark_to_drop(standard_metadata);
|
||||
}
|
||||
|
||||
action srcRoute_nhop() {
|
||||
|
||||
Reference in New Issue
Block a user