-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Title: WTF the bug is?
Content:
I find a error:
heavy_hitter.p4(127): warning: -1: negative value with unsigned type
add_to_field(ipv4.ttl, -1);
^
heavy_hitter.p4(152): warning: csum16: unexpected algorithm
algorithm : csum16;
^^^^^^
error: HashAlgorithm.csum16: Invalid enum tag
heavy_hitter.p4(177): error: hash: Cannot unify Type(HashAlgorithm) to HashAlgorithm
modify_field_with_hash_based_offset(custom_metadata.hash_val1, 0,
^
/usr/local/share/p4c/p4include/v1model.p4(115)
enum HashAlgorithm {
^^^^
How to resolve this?
Reactions are currently unavailable