Skip to content
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

remove OverwritingHeader #578

Closed
jnfoster opened this issue May 8, 2017 · 6 comments
Closed

remove OverwritingHeader #578

jnfoster opened this issue May 8, 2017 · 6 comments
Assignees
Labels
fixed This topic is considered to be fixed.

Comments

@jnfoster
Copy link
Contributor

jnfoster commented May 8, 2017

Per 4/24 LDWG discussion.

@mihaibudiu
Copy link
Contributor

This is more subtle:

  • if P4-14 requires this error we have to insert a check in the compiler when compiling extracts
  • if BMv2 triggers this error automatically, we have to invalidate headers prior to extraction
    @antoninbas : what is the right way to handle this to remain compatible with P4-14 and to provide the right semantics for P4-16?

@antoninbas
Copy link
Member

I don't think there is anything in the p4_14 spec that says you cannot extract to the same header twice, so I think you are fine on that side.
I have a pull request opened to stop triggering this error in bmv2 (p4lang/behavioral-model#358). I think I should be good to merge it even before you make the compiler change, but just in case I'll wait until you have a PR ready.

mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue May 9, 2017
mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue May 9, 2017
mihaibudiu pushed a commit to mihaibudiu/p4c-clone that referenced this issue May 9, 2017
@mihaibudiu mihaibudiu added the fixed This topic is considered to be fixed. label May 9, 2017
ChrisDodd pushed a commit that referenced this issue May 10, 2017
* Fix for issue #578; commented core.p4

* Fixed typos
@mihaibudiu
Copy link
Contributor

@antoninbas : does bmv2 still trigger this error?

@antoninbas
Copy link
Member

Not if I merge this: p4lang/behavioral-model#358

@antoninbas
Copy link
Member

So @mbudiu-vmw can I merge the bmv2 pull request to stop triggering the error?

@mihaibudiu
Copy link
Contributor

I think that it is safe to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This topic is considered to be fixed.
Projects
None yet
Development

No branches or pull requests

3 participants