You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to a question raised by Mahesh Shirshyad's proposal for a PNA IP checksum extern object that could have a method, perhaps called something like add_dependency, where you could have multiple instance of the IP checksum extern object, and make explicit method calls in the P4 source code that declared data dependencies between these objects, e.g. you could do something like this:
PNA_IPChecksum c1();
PNA_IPChecksum c2();
apply {
// other code here to set up parameters for c1 and c2, e.g. perhaps start offset and length parameters.
// in the case that the checksum for c1 included the result of checksum calculation for c2 as part of c1's input data
// we would like to tell the compiler explicitly in code that this was the case, perhaps with a call like this:
c1.add_dependency(c2);
// meaning that c2's result should be calculated first, before c1's checksum calculation could finish.
}
See the example program attached to this comment: p4lang/p4-spec#1262 (comment)
The text was updated successfully, but these errors were encountered: