-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected key field for BMV2 example #3514
Comments
It looks like the correct behavior according to https://github.com/p4lang/p4c/blob/main/frontends/p4/tableKeyNames.cpp#L110 but the STF runner can not parse these types of names. |
Can this be solved by adding some |
We actually have 2 STF parsers, one is in bmv2stf.py and the other one is in tools. We have never managed to replace the one in bmv2stf with the other one. Each of them has their own limitations. |
But the spec says something different. See https://p4.org/p4-spec/docs/P4-16-working-spec.html#sec-computing-control-names Which does not list & expressions in the table for keys and generated names. |
That is correct, the compiler indeed allows this while the spec does not. |
The match-on-exprs2-bmv2.p4 finished with the messages for attached stf:
match-on-exprs2-bmv2.stf.txt
match-on-exprs2-bmv2-BMV2SimpleSwitchMidEnd_43_MidEndLast.p4.txt
match-on-exprs2-bmv2.json.txt
It looks like
p4c-bmv2-ss
generated invalid json file forbehavioral-model
.The text was updated successfully, but these errors were encountered: