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

Forbid egress pipeline in dpdk by default #3104

Merged
merged 1 commit into from
Mar 3, 2022

Conversation

kamleshbhalui
Copy link
Contributor

As there are no egress pipeline use case, currently forbid it by default in dpdk.

else if (kv.first == "EgressParser")
kv.second->apply(*egress_parser_converter);
else if (kv.first == "MainParserT")
else if (kv.first == "EgressParser") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bit strange.
First, because you compile for PSA, you should always have an egress.
Second, by giving a flag you are causing a large part of the P4 program to be ignored. I would at least check that the egress programs are "empty" and give a warning. Alternatively, you could dispense with the flag and not generate any code if all the egress components are empty. In other words, infer the value of this flag from the source program.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, code generated for ingress pipeline and egress pipeline are in single output file which is not right, because two should be independent.
Real future job is to generate two output file one for egress pipeline and other for egress pipeline from a single p4 program which has non empty ingress and egress block. Until this done we generate code for ingress only even when egress are present, but once above task done, we will get rid of this flag, that's why the flag is not exposed to user, it's hidden.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not look very hidden to me.
Anyway, if this is temporary this should also be documented.

@kamleshbhalui
Copy link
Contributor Author

please merge this

@mihaibudiu
Copy link
Contributor

You have some build failures

@kamleshbhalui
Copy link
Contributor Author

Failure does not seem to related
Error: Failed to download metadata for repo 'updates-modular': Cannot prepare internal mirrorlist: Status code: 503 for https://mirrors.fedoraproject.org/metalink?repo=updates-released-modular-f35&arch=x86_64 (IP: 152.19.134.198)
can we restart build?

@mihaibudiu
Copy link
Contributor

I will take a chance

@mihaibudiu mihaibudiu merged commit 369d527 into p4lang:main Mar 3, 2022
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.

2 participants