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

Dpdk Backend: Strip pipename prefix added to table and extern names for bfrt.json while generating context json #3936

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

usha1830
Copy link
Contributor

@usha1830 usha1830 commented Mar 23, 2023

For bfrt.json, an additional pipe_name prefix is added to the table and extern names.
Context json uses the table and action ids from p4info. Since the name of table is different when bfrt json is generated whereas when it is not generated, while generating context json, we remove the pipe_name prefix added by the bfrt generator.

Fixes #3928

@usha1830 usha1830 requested a review from mihaibudiu March 23, 2023 13:20
@jafingerhut
Copy link
Contributor

I do not have good enough technical knowledge of the code changes to review them, but I can confirm that with these changes I can run p4c-dpdk on the P4 program in issue #3928 without any Compiler Bug, and it produces a context.json file that appears reasonable. Thanks for the PR.

@mihaibudiu mihaibudiu merged commit b577907 into p4lang:main Mar 23, 2023
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.

p4c-dpdk gives CompilerBug while attempting to generate context.json for DASH PNA program
3 participants