You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@castilhorosa With this commit made to p4c on 2012-Dec-06, the operation resubmit in the v1model architecture has been renamed resubmit_preserving_field_list and takes a numeric field list id, and you can use the @field_list annotation on user-defined metadata fields to define which numeric field list ids that the field is included in.
Also with that commit, the older way of doing things using resubmit({field1, field2, field, 3...}) is now deprecated.
Hello,
I'm trying to use the examples in https://github.com/jafingerhut/p4-guide/blob/master/v1model-special-ops/README-resubmit-examples.md to resubmit packets preserving user metadata. When I try to compile it though, I get the following error:
[--Werror=type-error] error: 1: could not infer a width resubmit(1);
When I try to use @field_list like in v1model-multiple-resubmit-reasons-field-list-annot.p4 I get a similar error:
[--Werror=not-found] error: fl_resubmit1: declaration not found resubmit(fl_resubmit1);
Are these examples working? If so, what should I do to get them compile?
The text was updated successfully, but these errors were encountered: