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
Since basic.p4 is a first look at a P4 program, I think more comments would be nice. For example, it would be helpful to have a comment on ipv4_forward() saying that the dstAddr and port arguments (1) are provided as action data when the control plane fills out the ipv4_lpm table, and (2) indicate the Ethernet destination and port number on which the packet should be forwarded.
The text was updated successfully, but these errors were encountered:
As an example of a different P4 program with comments intended for someone brand new to P4, to learn a few things from the comments, you can take a look at this one:
It may be more verbose in its comments than you want, but you are welcome to copy any or all of it and adapt it for the tutorials, if you find it helpful.
Since
basic.p4
is a first look at a P4 program, I think more comments would be nice. For example, it would be helpful to have a comment onipv4_forward()
saying that thedstAddr
andport
arguments (1) are provided as action data when the control plane fills out theipv4_lpm
table, and (2) indicate the Ethernet destination and port number on which the packet should be forwarded.The text was updated successfully, but these errors were encountered: