[P4-dev] compile failure for mri.p4

Mohammed.Habeeb IHS mohammed.habeeb at inventec.com
Fri Aug 18 20:19:03 EDT 2017

Hi Andy

The call to ipv4_lpm.apply() was twice in my code, Corrected and it works now.


From: Andy Fingerhut [mailto:andy.fingerhut at gmail.com]
Sent: Friday, August 18, 2017 5:00 PM
To: Mohammed.Habeeb IHS <mohammed.habeeb at inventec.com>
Cc: p4-dev <p4-dev at lists.p4.org>
Subject: Re: [P4-dev] compile failure for mri.p4

I have seen that error message for P4 programs where you attempt to apply the same table more than once in your program.

In the original mri.p4 program there is only one line that applies the ipv4_lpm table, here: https://github.com/p4lang/tutorials/blob/master/P4D2_2017/exercises/mri/mri.p4#L225

In the solution mri.p4 program there is also only one line that applies the ipv4_lpm table, here: https://github.com/p4lang/tutorials/blob/master/P4D2_2017/exercises/mri/solution/mri.p4#L203

If your program has more than one apply for the ipv4_lpm table, you will get that error.


On Fri, Aug 18, 2017 at 11:40 AM, Mohammed.Habeeb IHS <mohammed.habeeb at inventec.com<mailto:mohammed.habeeb at inventec.com>> wrote:

I have completed all the TODO changes in mri.p4 from p4D2_2017 and tried to compile. I get the following error

mri.p4(250): error: program can not be implemented since it requires a cycle containing ipv4_lpm
compile failed

I see ipv4_lpm was already there not in TODOs. I checked the solution the ipv4_lpm table is the same. Please let me know what  the error is about.



Confidentiality Note
This e-mail transmission and any attachments contain information from Inventec Corporation. The information is confidential and/or privileged and intended to be solely for the use of the individuals or entities named in this e-mail transmission. If you are not the intended recipient, be aware that any disclosure, saving or use of the content of this e-mail transmission and attachments is strictly prohibited. If you have received this email transmission in error, please notify us immediately, and delete the e-mail and attachments. We greatly appreciate your cooperation.

P4-dev mailing list
P4-dev at lists.p4.org<mailto:P4-dev at lists.p4.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170819/dd1de4f0/attachment-0002.html>

More information about the P4-dev mailing list