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});
syntax error, unexpected IDENTIFIER, expecting ;
Hash<bit<14>>(HashAlgorithm_t.CRC16) h
^
P4D2_2017_Fall/P4_tutorial_labs.pdfhas information on the signature ofhash()that should be copied intoload_balancing.p4.ecmp_baseandecmp_countare needed inload_balancing p4. (Otherwise, I wouldn't know to use them forbaseandmaxin the call tohash().)Resulting error: