Browse Source

Update meta.task field for checksumming

master
Nico Schottelius 3 years ago
parent
commit
5dec26d957
  1. 4
      p4src/static-mapping.p4

4
p4src/static-mapping.p4

@ -78,7 +78,7 @@ control MyIngress(inout headers hdr,
*/
/* checksum trigger / content */
meta.do_cksum = 1;
meta.task = TASK_CHECKSUM_ICMP6_NA;
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
}
@ -93,7 +93,7 @@ control MyIngress(inout headers hdr,
hdr.icmp6.type = ICMP6_ECHO_REPLY;
meta.do_cksum = 1;
meta.task = TASK_CHECKSUM_ICMP6;
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
}

Loading…
Cancel
Save