diff --git a/doc/plan.org b/doc/plan.org index 188ee5b..9bf40f1 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -4971,6 +4971,11 @@ else: - Checksums match, but we only update it using HashAlgorithm.csum16 +*** 2019-07-10: + To be finished today: + - delta on bmv2 + - general compile on netpfga + ** References / Follow up *** RFC 791 IPv4 https://tools.ietf.org/html/rfc791 *** RFC 792 ICMP https://tools.ietf.org/html/rfc792 diff --git a/p4app/test.json b/p4app/test.json new file mode 100644 index 0000000..27d95e5 --- /dev/null +++ b/p4app/test.json @@ -0,0 +1,48 @@ +{ + "program": "../p4src/checksum_diff.p4", + "switch": "simple_switch", + "compiler": "p4c", + "options": "--target bmv2 --arch v1model --std p4-16", + "switch_cli": "simple_switch_CLI", + "cli": true, + "pcap_dump": true, + "enable_log": true, + "topo_module": { + "file_path": "", + "module_name": "p4utils.mininetlib.apptopo", + "object_name": "AppTopoStrategies" + }, + "controller_module": null, + "topodb_module": { + "file_path": "", + "module_name": "p4utils.utils.topology", + "object_name": "Topology" + }, + "mininet_module": { + "file_path": "", + "module_name": "p4utils.mininetlib.p4net", + "object_name": "P4Mininet" + }, + "topology": { + "assignment_strategy": "l2", + "auto_arp_tables": false, + "links": [["h1", "s1"], ["h2", "s1"], ["h3", "s1"], ["h4","s1"]], + "hosts": { + "h1": { + }, + "h2": { + } + , + "h3": { + } + , + "h4": { + } + }, + "switches": { + "s1": { + "cpu_port" : true + } + } + } +} diff --git a/p4src/checksum_diff.p4 b/p4src/checksum_diff.p4 index 75ec6cb..beb96da 100644 --- a/p4src/checksum_diff.p4 +++ b/p4src/checksum_diff.p4 @@ -128,6 +128,7 @@ control MyDeparser(packet_out packet, in headers hdr) { } } +// OK-UNTIL-HERE /************************************************************************* ************** I N G R E S S P R O C E S S I N G ******************* @@ -772,7 +773,6 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) { *************************************************************************/ - V1Switch( MyParser(), MyVerifyChecksum(),