We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following program compiles fine, but simple_switch raises the error
simple_switch
terminate called after throwing an instance of 'std::runtime_error' what(): Type is not convertible to string Aborted (core dumped)
at runtime:
#include <core.p4> #include <v1model.p4> typedef standard_metadata_t std_meta_t; header ipv4_t { } struct H { ipv4_t ipv4; } struct M { } parser ParserI(packet_in pk, out H hdr, inout M meta, inout std_meta_t std_meta) { state start { transition accept; } } control VerifyChecksumI(in H hdr, inout M meta) { apply { } } control ComputeChecksumI(inout H hdr, inout M meta) { apply { } } control aux(inout M meta, in H hdr) { table adjust_lkp_fields { key = { hdr.ipv4.isValid() : exact; } actions = { NoAction; } } apply{ adjust_lkp_fields.apply(); } } control IngressI(inout H hdr, inout M meta, inout std_meta_t std_meta) { aux() do_aux; apply { do_aux.apply(meta, hdr); } } control EgressI(inout H hdr, inout M meta, inout std_meta_t std_meta) { apply { } } control DeparserI(packet_out b, in H hdr) { apply { } } V1Switch(ParserI(), VerifyChecksumI(), IngressI(), EgressI(), ComputeChecksumI(), DeparserI()) main;
The error disappears after inlining aux into IngressI by hand.
aux
IngressI
The text was updated successfully, but these errors were encountered:
Fixed.
Sorry, something went wrong.
No branches or pull requests
The following program compiles fine, but
simple_switch
raises the errorat runtime:
The error disappears after inlining
aux
intoIngressI
by hand.The text was updated successfully, but these errors were encountered: