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
P4D2_2017_Fall/P4_tutorial_labs.pdf
hash()
load_balancing.p4
ecmp_base
ecmp_count
load_balancing p4
base
max
Hash<bit<14>>(HashAlgorithm_t.CRC16) h; meta.ecmp_select = h.get_hash({hdr.ipv4.srcAddr, hdr.ipv4.dstAddr, hdr.ipv4.protocol, hdr.tcp.srcPort, hdr.tcp.dstPort});
Resulting error:
syntax error, unexpected IDENTIFIER, expecting ; Hash<bit<14>>(HashAlgorithm_t.CRC16) h ^
The text was updated successfully, but these errors were encountered:
No branches or pull requests
P4D2_2017_Fall/P4_tutorial_labs.pdf
has information on the signature ofhash()
that should be copied intoload_balancing.p4
.ecmp_base
andecmp_count
are needed inload_balancing p4
. (Otherwise, I wouldn't know to use them forbase
andmax
in the call tohash()
.)Resulting error:
The text was updated successfully, but these errors were encountered: