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

Initial support for arbitrary externs on bmv2 #591

Closed
wants to merge 7 commits into from

Conversation

engjefersonsantiago
Copy link
Contributor

Dear all,

I have implemented the initial support to extern instances in the bmv2 backend compiler. I have tested with P4-16 and P4-14. It is functional with P4-16, but I've seen an issue with P4-14, where the instantiation parameters are not being taken.

Regards,
Jeferson

@hanw
Copy link
Contributor

hanw commented May 9, 2017

Thanks, I have an upcoming patch that already implemented this feature as part of a larger refactoring. Would you mind holding on to this till I merged the refactor in? Then you can modify the refactored backend instead.

@engjefersonsantiago
Copy link
Contributor Author

Not problem. I'll wait then.

Regards,
Jeferson

@mihaibudiu
Copy link
Contributor

We should define an annotation (@userextern), which indicates that an extern is provided by the user.
Then the warning becomes an error if the annotation is missing.

@hanw
Copy link
Contributor

hanw commented May 11, 2017

@engjefersonsantiago It is going to be difficult for you rebase this pull request, given the most recent refactor. I suggest you re-apply your changes to the refactor bmv2 backend code. Sorry for the trouble.

@engjefersonsantiago
Copy link
Contributor Author

@hanw, maybe it will be a bit easier for you to check if your implementation fully contains my patch. Your changes have more than 6k LOC, mine is just 50 LOC.

@hanw
Copy link
Contributor

hanw commented May 11, 2017

Sure I will do that. Thanks.

@hanw
Copy link
Contributor

hanw commented May 11, 2017

Please submit a separate pull request for issue #604, I will close this one for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants